无需下载即可预览附件。如果有任何附件,则在Gmail中提供查看附件的功能 [英] Preview attached document without downloading.As in Gmail if any attachment is there it provides functionality to view it
本文介绍了无需下载即可预览附件。如果有任何附件,则在Gmail中提供查看附件的功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
需要在不下载文件的情况下查看附件。如在Gmail中提供查看文件的功能。请建议如何在c#或使用任何第三方dll实现它。请帮助
Need to view attached document without downloading file.As in Gmail which provides functionality to view file.Please suggest how to implement it in c# or using any 3rd party dll.Please help
推荐答案
你可以尝试System.Windows.Forms中的Bitmap对象:
Bitmap normalBitmap = new Bitmap(filePath);
Image minimizeThumbnail = normalBitmap.GetThumbnailImage(200,200,()=> false,IntPtr.Zero);
祝你好运!
you can try the Bitmap object from System.Windows.Forms:
Bitmap normalBitmap = new Bitmap(filePath);
Image minimizedThumbnail = normalBitmap.GetThumbnailImage(200, 200, ()=>false , IntPtr.Zero);
Good luck!
这篇关于无需下载即可预览附件。如果有任何附件,则在Gmail中提供查看附件的功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文