Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

How to print HTML files.
Started by Ganesh at 06-27-2008 2:24. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  06-27-2008, 2:24
Ganesh is not online. Last active: 7/7/2008 10:30:01 AM Ganesh

Top 100 Posts
Joined on 01-08-2008
Posts 20
How to print HTML files.
Reply Quote
Hi,


Is it possible to print .Html files using leadtools. I am using Leadtools version 14.5.0.68 and C# 2008.


It will be greatly helpful if you can provide some sample code.

Thanks,

Ganesh.
   Report 
  06-27-2008, 10:02
jigar is not online. Last active: 7/24/2008 12:12:53 PM jigar



Top 10 Posts
Joined on 08-22-2007
Posts 343
Re: How to print HTML files.
Reply Quote
Are you wanting to know how to render HTML files?  Our toolkit does not support rendering HTML files.  If you are wanting to just print out the raw HTML text, then you can read it as a TXT file and rasterize it.  After that you can use the RasterImagePrinter.

LEADTOOLS Technical Support
   Report 
  06-30-2008, 0:40
Ganesh is not online. Last active: 7/7/2008 10:30:01 AM Ganesh

Top 100 Posts
Joined on 01-08-2008
Posts 20
Re: How to print HTML files.
Reply Quote
Thanks for your reply.

It will be greatly appreciate if you can provide some sample code.


Thanks

Ganesh.
   Report 
  06-30-2008, 10:07
jigar is not online. Last active: 7/24/2008 12:12:53 PM jigar



Top 10 Posts
Joined on 08-22-2007
Posts 343
Re: How to print HTML files.
Reply Quote
Basically you just follow the sample code for "Loading and Displaying an Image" in our documentation.  Before you call RasterCodecs.Load() you set RasterCodecs.Options.Txt.Load.Enabled = true so it can load text files.  After you have loaded the file you can use the RasterImagePrinter sample code to print it out.

LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » File Formats » How to print HTML files.

Powered by Community Server, by Telligent Systems