We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Product for html to excel asp.net

Hi,
Do u have a product which convert html to excel
which support all the version of MS-Office in Asp.net i also need a product which convert html to pdf.

Thanks
sameer khan

1 Reply

RS Rajarajeswari S Syncfusion Team October 31, 2007 01:14 PM UTC



Hi Sameer,

Query 1: Do u have a product which convert html to excel

Sorry. Currently we don't provide support for converting Html to an Excel.

Query 2: I also need a product which convert html to pdf.

You can convert HTML file into PDF document in Bitmap or Metafile format with minimal code.

The way HTML to PDF works in this option is that HTML is first converted to an Bitmap or Vector Image [Metafile] and then the image is parsed and rendered inside PDF. The HTMLConverter uses the MSHTML rendering library to render HTML documents. The MSHTML library is the engine that is used to drive the Internet Explorer.

Here is a sample for your reference.

http://websamples.syncfusion.com/samples/PDF.Web/5.2.0.25/F69511/main.htm

When you click the button in the above sample link, it will show you the resulted PDF document of HTML page.

Please follow the steps below that has to be done under Asp.net environment for converting HTML webpage to PDF document .

1) Include the attribute AspCompat="true" in the @Page directive.

Here is the code snippet

[Aspx]

2) Reference the "AxSHDocVw.dll, SHDocVw.dll" assembly to the project. This dll can be found along with sample attachment.

3) Place these COM assemblies in the "BIN" directory of your project. Since the Syncfusion library needs these assemblies for conversion purposes, it should be compulsorily be placed in the BIN directory.

Please let us know if you want any more details.

Regards,
S.Rajarajeswari


Loader.
Live Chat Icon For mobile
Up arrow icon