如何将html字符串转换为JPEG图像格式而不使用带有C#的asp.net中的任何ddl或exe [英] How to convert html string into JPEG Image format without using any ddl or exe in asp.net with C#

查看:82
本文介绍了如何将html字符串转换为JPEG图像格式而不使用带有C#的asp.net中的任何ddl或exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我使用ASP.NET 3.5(C#)将html文本字符串转换为.jpg图像时遇到问题。

我在谷歌上搜索但发现使用ddl或exe并且找不到它的完美解决方案。



要求:



我正在准备html文本,其中应用了图像和所有文本格式的css。那是准备发送邮件给客户端现在我们的要求是准备html应该转换为图像。

我想将该邮件正文保存为图像..

所以请建议我完美的解决方案。



提前谢谢。

Hi,

I am facing problem to convert html text string into .jpg image using with ASP.NET 3.5 (C#).
I have searched on Google but found using ddl or exe and can't found perfect solution of it.

Requirement :

I am preparing html text in which image and all text format css is applied. That is prepared to send mail to client Now Our requirement is that prepare html should convert into Image.
I want to save that mail body as Image ..
so please suggest me perfect solution.

thanks in advance.

推荐答案

你实际搜索了多少?



我在几分钟后发现了这个。



它有可下载的演示和源代码。



http://htmlrenderer.codeplex.com/ [ ^ ]



//乔治
How much did you actually search?

I found this after a few minutes.

It has both downloadable demo and source code.

http://htmlrenderer.codeplex.com/[^]

// George


我已经通过这个链接解决了这个问题。



获取ASP.NET C#2.0网站缩略图屏幕截图 [ ^ ]
I have solved this issues with help of this link.

Get ASP.NET C# 2.0 Website Thumbnail Screenshot[^]


这篇关于如何将html字符串转换为JPEG图像格式而不使用带有C#的asp.net中的任何ddl或exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆