Hey !! Can anyone tell me how to create a PDF file
from VB or ASP, **** WITH THE ACROBAT SDK (NO THIRD PARTY CONTROLS) ****
I need to conver a HTML page to a PDF file and send it to the user.
Thanks for your time
Printable View
Hey !! Can anyone tell me how to create a PDF file
from VB or ASP, **** WITH THE ACROBAT SDK (NO THIRD PARTY CONTROLS) ****
I need to conver a HTML page to a PDF file and send it to the user.
Thanks for your time
Yep, it´s hard to create the PDF with the SDK but possible.
Easier solution: Use the Acrobat-Pdf-Writer (the printer).
In the calling App do this:
SetStringValue "HKEY_CURRENT_USER\SOFTWARE\ADOBE\ACROBAT PDFWRITER", "res", "3"
'Acrobat nach Druck nicht aufrufen
SetStringValue "HKEY_CURRENT_USER\SOFTWARE\ADOBE\ACROBAT PDFWRITER", "bExecViewer", "0"
'der Registry-Eintrag des PDF-Namens wird sofort nach dem drucken gelöscht
SetStringValue "HKEY_CURRENT_USER\SOFTWARE\ADOBE\ACROBAT PDFWRITER", "PDFFileName", strPDF
and then (I used the ImgEdit, you can use the IE-dll):
ImgEdit2.PrintImage 1, , 2, False, "Acrobat PDFWriter", "Acrobat PDFWriter", strPort
works perfectly
Andreas
hey athaler
its a good answer .its work fine.but may be vary in win nt and 2000 system
Biswajit