开发者

Need to fax HTML via .NET code

开发者 https://www.devze.com 2023-04-07 05:14 出处:网络
I have 1 HTML page in a StringBuilder that consists of a number of tables. After each table I put a page break for printing purposes. Now I need to fax this HTML page.

I have 1 HTML page in a StringBuilder that consists of a number of tables.

After each table I put a page break for printing purposes. Now I need to fax this HTML page.

After each page, a break page should be faxed on another page.

I need to do this in either VB开发者_运维知识库.NET or C#.

How can this be done?


You need to render the page in order to FAX it (usually storing it in a multipage TIFF file). You can do this by using an off-screen WebBrowser control and rendering it to a Graphics object that is backed by an Image and then encoding it into a TIFF. You might be able to do this with any bitmap format.

Then you need to FAX it using this: http://www.codeproject.com/KB/cs/Fax-XP-ing.aspx or this http://faxdotnet.codeplex.com/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号