Page 1 of 1

HTML String to PDF

Posted: Thu Jan 20, 2011 9:17 pm
by himanshu
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:
https://sites.google.com/site/bullzip/p ... 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>
<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>
</div>";


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

///ev is PrintPageEventArgs ev;

I want my print to retain the format.

Thanks.
Himanshu.