HTML String to PDF

About the programming interface for the virtual PDF printer driver.

Moderator: jr

HTML String to PDF

Postby himanshu » Thu Jan 20, 2011 9:17 pm

Hi All,

Lanugage: C#, ASP.NET

I have my content in HTML Table and want to print in pdf.

I have created an HTML Table at runtime in C# and passed the same in String/StringBuilder, Now I want to pass the same to BullZip printer for printing, can some one help me to do the same.

Below is the sample I am working on which I got from: ... om-asp-net,

I want to remove textbox and use string.

The language in the string is Hindi(Indian).

string printText = "<div><h5>Normal Print</h5>
<p>आपमें से कुछ को पता होगा कि RMIM पुरस्कार के तहत साल भर के हिंदी फ़िल्म संगीत का एक लेखा-जोखा किया जाता है.
<br />2008 के पुरस्कारों के लिए नामांकन प्रक्रिया अब चालू है.
<br />ये पुरस्कार श्रोताओं के पुरस्कार हैं और आप अपनी पसंद भी इसमें शामिल कर सकते हैं.
<p>Concurrency is handled by assigning each postscript file a unique name.</p>
<p>The created PDF file will have the text from the text box below. It will also have a sample screen shot of the application.</p>

ev.Graphics.DrawString(printText, printFont, Brushes.Black, leftMargin, yPos, new StringFormat());

///ev is PrintPageEventArgs ev;

I want my print to retain the format.

Posts: 1
Joined: Thu Jan 20, 2011 8:52 pm

Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest