Areeb
Areeb

Reputation: 211

Need to fax HTML via .NET code

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?

Upvotes: 3

Views: 497

Answers (1)

Lou Franco
Lou Franco

Reputation: 89222

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/

Upvotes: 3

Related Questions