Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从 asp.net mvc 4 应用程序中的 excel、pdf、doc、txt 等生成缩略图。
有没有办法做到这一点。
(任何样品)
看到这个SO question answer。可能有助于满足您的要求
ShellFile shellFile = ShellFile.FromFilePath(pathToYourFile); Bitmap shellThumb = shellFile.Thumbnail.ExtraLargeBitmap;