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

AspToPdf conversion

Hi,
I am testing your product in order to create a convertion of aspx page into Pdf format.
Is it possible to do it inside web application (VS2005) ?

2 Replies

GS Ganesh Shah October 17, 2007 10:59 AM UTC

Yes, html to pdf conversion can be done in VS2005.
>Hi,
I am testing your product in order to create a convertion of aspx page into Pdf format.
Is it possible to do it inside web application (VS2005) ?


AD Administrator Syncfusion Team October 20, 2007 06:11 AM UTC

Hi Boris,

Sorry for the delayed response.

Yes, it is possible with Essential PDF to convert Aspx files into PDF in ASP.Net environment.

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

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

Here is the code snippet

[Aspx]
<%@ Page Language="C#" AutoEventWireup="true" AspCompat="true" %>

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

3) Place these COM assemblies in the "BIN" directory of your project.

Please refer the working sample in the below location that demonstrates on converting
Aspx page to PDF document.

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

Please let me know if you have any other queries.

Regards,
Jaya

Loader.
Live Chat Icon For mobile
Up arrow icon