当前位置: 首页 > news >正文

如何做优秀的视频网站wordpress金融模板

如何做优秀的视频网站,wordpress金融模板,申请网站空间就是申请域名,php网站开发实例教程源码本文将使 C# 开发人员能够以编程方式将EML或MSG转换为其他流行的文件格式。Aspose.Email 提供了类和方法以及在线 电子邮件转换器工具#xff0c;可将 EML无缝转换为PNG 。如果不安装第三方软件#xff0c;则无法打开 EML/MSG 文件。因此#xff0c;将 EML/MSG 转换为 PNG 和…本文将使 C# 开发人员能够以编程方式将EML或MSG转换为其他流行的文件格式。Aspose.Email 提供了类和方法以及在线 电子邮件转换器工具可将 EML无缝转换为PNG 。如果不安装第三方软件则无法打开 EML/MSG 文件。因此将 EML/MSG 转换为 PNG 和JPG等图像文件格式将允许您轻松查看这些文件。因此在本指南中我们将通过一段代码片段来使用C#构建电子邮件转换软件。在继续之前请确保您有源EML和MSG文件来实现该功能。 Aspose.Email 是用于轻松的开发 email 功能的应用程序的一组控件基于  ASP.NET 的Web应用、Web服务和Windows 应用。支持 Outlook PST, EML, MSG, and MHT 格式. 允许开发者直接与 SMTP, POP, FTP, 和 MS Exchange 服务器进行工作。支持邮件合并、行事历、定制邮件标题和内容、嵌入文件等Aspose API支持流行文件格式处理并允许将各类文档导出或转换为固定布局文件格式和最常用的图像/多媒体格式。 Aspose.Email 最新下载qun666790229https://www.evget.com/product/3081/download 电子邮件 API 集成和安装 要安装此企业级 .NET 库请在NuGet包管理器中运行以下命令或在此处下载 DLL 文件。 Install-Package Aspose.Email除了Aspose.Email for .NET之外您还需要安装Aspose.Words for .NET API。 Install-Package Aspose.Words Aspose.Email for .NET为开发人员提供了完整的安装指南。此外安装需要几秒钟您就可以开始使用 API 将EML 转换为 PNG 或 MSG 转换为 PNG。 C# 中的 EML 到 PNG 转换 现在我们可以编写一个代码示例以编程方式用 C# 构建电子邮件转换器工具。 以下步骤展示了如何构建电子邮件转换软件以将 EML 转换为 PNG 创建EmlLoadOptions类的对象该对象将用于从 EML 格式加载 MailMessage。设置RemoveSignature属性的值以指示加载时是否删除签名。调用MailMessage类的Load方法来加载源 EML 文件。设置消息的敏感度。设置消息的优先级。实例化MemoryStream类的实例。将 EML 转换为 MHTML 并通过调用Save方法保存到流。调用Position属性并设置流中的当前位置。使用 MHTML 流初始化Document类的实例。通过调用Save方法将文档保存为 PNG 图像。 以下代码片段在 C# 中将 EML 转换为 PNG。 using Aspose.Email; using Aspose.Words;namespace Aspose.Email { class EMLtoPNG { // Email conversion software for C# Developers - EML to PNG static void Main(string[] args) {string dataDir /sample-files/; // Create an object of the EmlLoadOptions class that will be used to load MailMessage from EML format. EmlLoadOptions emlLoadOptions new EmlLoadOptions(); // Set a value of RemoveSignature property to indicate whether signature will be removed while loading. emlLoadOptions.RemoveSignature false; // Invoke the Load method of the MailMessage class to load the source eml file. MailMessage msg MailMessage.Load(dataDir sample.eml, emlLoadOptions); // Set the Sensitivity of the message. msg.Sensitivity MailSensitivity.Normal; // Set the Priority of the message. msg.Priority MailPriority.High; // Instantiate an instance of the MemoryStream class. MemoryStream msgStream new MemoryStream(); // Convert EML to MHTML and save to stream by calling the Save method. msg.Save(msgStream, SaveOptions.DefaultMhtml); // Invoke the Position property and set the current position within the stream. msgStream.Position 0; // Initialize an instance of the Document class with the MHTML stream. Document msgDocument new Document(msgStream); // Save the document as PNG image by calling the Save method. msgDocument.Save(dataDir Outlook-Aspose_out.png, SaveFormat.Png); } } }您可以在下图中看到输出 以编程方式将 MSG 转换为 PNG 同样您可以通过在上面的代码片段中进行以下更改来将MSG 转换为 PNG 创建MsgLoadOptions类的对象并将其作为参数传递到MailMessage类的Load方法中以加载源 MSG 文件。 以下代码示例演示了如何在.NET中将MSG转换为PNG using Aspose.Email; using Aspose.Words;namespace Aspose.Email { class MSGtoPNG { // Email conversion software for C# Developers - MSG to PNG static void Main(string[] args) {string dataDir /sample-files/; // Create an object of the MsgLoadOptions class that will be used to load MailMessage from MSG format. MsgLoadOptions msgLoadOptions new MsgLoadOptions(); // Set a value of RemoveSignature property to indicate whether signature will be removed while loading. msgLoadOptions.RemoveSignature false; // Invoke the Load method of the MailMessage class to load the source MSG file. MailMessage msg MailMessage.Load(dataDir sample.msg, msgLoadOptions); // Set the Sensitivity of the message. msg.Sensitivity MailSensitivity.Normal; // Set the Priority of the message. msg.Priority MailPriority.High; // Instantiate an instance of the MemoryStream class. MemoryStream msgStream new MemoryStream(); // Convert MSG to MHTML and save to stream by calling the Save method. msg.Save(msgStream, SaveOptions.DefaultMhtml); // Invoke the Position property and set the current position within the stream. msgStream.Position 0; // Initialize an instance of the Document class with the MHTML stream. Document msgDocument new Document(msgStream); // Save the document as PNG image by calling the Save method. msgDocument.Save(dataDir Outlook-Aspose_out.png, SaveFormat.Png); } } }免费电子邮件转换器 - 现场演示 我们学习了如何为 C# 开发人员开发电子邮件转换软件。这里有一个在线工具可以在线将 EML 转换为 PNG。它由Aspose.Email提供支持。此外此电子邮件转换器工具是基于网络的并具有用户友好的界面您也可以在手机上使用此电子邮件转换器。最重要的是它是免费的您在使用它之前不需要进行任何订阅。 结论 我们在此结束这篇博文希望本文对您有所帮助。我们已经了解了如何使用Aspose.Email for .NET在 C# 中构建电子邮件转换软件。此外我们探索了一个在线电子邮件转换器工具可以在线将 EML 转换为 PNG。
http://www.w-s-a.com/news/105734/

相关文章:

  • vi设计案例网站微信导航网站 dedecms
  • 青浦区做网站设计图片手绘图片
  • 做网站的基本功制作网站公司推荐
  • 阿里云快速建站教程个人网站 费用
  • 广东购物网站建设微信公众号制作模板免费
  • 阿里国际站韩语网站怎么做让移动网站
  • 北京外包做网站如何报价中国几大网络推广公司
  • 中国建设部网站关于资质wordpress 建app
  • 程序员找工作的网站哈尔滨建设信息网站
  • 公司 网站 方案高考写作网站
  • 网站后台如何登陆网站开发需求逻辑图
  • 市级档案网站建设情况分析server2008做DNS与网站
  • 公积金门户网站建设方案网站建设代理平台怎么做
  • 网站建设知识论文抖音开放平台是干什么的
  • 网站建设期末试卷大气简洁网站
  • 电子商务网站建设报告范文单位做网站怎么做
  • 优质的外国网站qq小程序在哪里打开
  • 商务网站建设与推广实训报告免费素材网站无水印
  • 外贸站seoapp开发公司历程概述
  • 沈阳网站推广¥做下拉去118cr陶瓷企业 瓷砖地板公司网站建设
  • 医院网站官方微信精神文明建设我做服装设计师的 求推荐资源网站
  • 微信网站建设需要那些资料昆明cms模板建站
  • 安庆网站建设兼职中企动力是500强吗
  • 网站排名优化技巧基于网站的网络营销方法有哪些
  • 摄影素材网站做知识问答的网站
  • 中小企业网站建设济南兴田德润电话门店管理系统软件排行
  • 昆明工程建设信息网站柳州网站建设公司哪家好
  • 如何分析网站关键词北京门户网站网址
  • 做网站与做游戏那个好网站域名怎么起
  • 有没有做cad单的网站银行网站建设方案视频