Can I export my DataReport to .pdf? I can export to html :
VB Code:
DataReport1.ExportReport rptKeyHTML, "C:\MyReport.htm", True, True, rptRangeFromTo, 1, 4
Can I export to .pdf?
Printable View
Can I export my DataReport to .pdf? I can export to html :
VB Code:
DataReport1.ExportReport rptKeyHTML, "C:\MyReport.htm", True, True, rptRangeFromTo, 1, 4
Can I export to .pdf?
This link should help solve your problem. :thumb:
Thanks! What is Adobe Distiller? I do not need to print directly to .pdf format, I only need to save to .pdf. I still need Adobe Distiller to do that?
:)
adodbe distiller is the one that makes writing a pdf file possible... now if you want to convert your report to pdf... print it using the adobe distiller printer.
Where can I get it? Do I have to write anything to my code? like :
VB Code:
DataReport1.ExportReport rptKeyHTML, "C:\MyReport.htm", True, True, rptRangeFromTo, 1, 4
i think its in the datareport.printreport function to write this one... bcoz you wont export it to pdf... you will "print" it to pdf
datareport.exportreport function saves a report as html file or in html format
ok... some steps to help you out...
firstly, install adobe distiller...
then set your default pc printer to distiller...
(you can do that by going to settings>>printers, right click the acrobat distiller printer>> set as default)
then print your report...
>>datareport.printreport...
or as sugested you can use the adobe api calls... try a search! google is your friend!
i believe the newer version of acrobat pdf (i've got version 6) has the ability to accept pdf conversion from a variety of apps. then there is crystal reports which can simply convert to pdf.
well then, i suggest you migrate to crystal reports
that would be right... although it still depends on how you create you app... try to experiment!