Results 1 to 11 of 11

Thread: Export DataReport to pdf?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2004
    Posts
    344

    Export DataReport to pdf?

    Can I export my DataReport to .pdf? I can export to html :

    VB Code:
    1. DataReport1.ExportReport rptKeyHTML, "C:\MyReport.htm", True, True, rptRangeFromTo, 1, 4

    Can I export to .pdf?

  2. #2
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: Export DataReport to pdf?

    This link should help solve your problem.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2004
    Posts
    344

    Re: Export DataReport to pdf?

    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?


  4. #4
    Fanatic Member lerroux's Avatar
    Join Date
    Nov 2005
    Location
    Welcome to the darkside... we have cookies
    Posts
    646

    Re: Export DataReport to pdf?

    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.
    WARNING: Excessive coding is dangerous to your health... if symptoms persist insult your doctor...

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2004
    Posts
    344

    Re: Export DataReport to pdf?

    Where can I get it? Do I have to write anything to my code? like :

    VB Code:
    1. DataReport1.ExportReport rptKeyHTML, "C:\MyReport.htm", True, True, rptRangeFromTo, 1, 4

  6. #6
    Fanatic Member lerroux's Avatar
    Join Date
    Nov 2005
    Location
    Welcome to the darkside... we have cookies
    Posts
    646

    Re: Export DataReport to pdf?

    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
    WARNING: Excessive coding is dangerous to your health... if symptoms persist insult your doctor...

  7. #7
    Frenzied Member d3gerald's Avatar
    Join Date
    Jan 2006
    Posts
    1,348

    Re: Export DataReport to pdf?

    datareport.exportreport function saves a report as html file or in html format
    On error goto Trap

    Trap:
    in case of emergency, drop the case...

    ****************************************
    If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option.
    if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar

  8. #8
    Fanatic Member lerroux's Avatar
    Join Date
    Nov 2005
    Location
    Welcome to the darkside... we have cookies
    Posts
    646

    Re: Export DataReport to pdf?

    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!
    Last edited by lerroux; Mar 9th, 2006 at 02:30 AM.
    WARNING: Excessive coding is dangerous to your health... if symptoms persist insult your doctor...

  9. #9
    Frenzied Member
    Join Date
    May 2003
    Location
    Sydney
    Posts
    1,123

    Re: Export DataReport to pdf?

    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.

  10. #10
    Frenzied Member d3gerald's Avatar
    Join Date
    Jan 2006
    Posts
    1,348

    Re: Export DataReport to pdf?

    well then, i suggest you migrate to crystal reports
    On error goto Trap

    Trap:
    in case of emergency, drop the case...

    ****************************************
    If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option.
    if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar

  11. #11
    Fanatic Member lerroux's Avatar
    Join Date
    Nov 2005
    Location
    Welcome to the darkside... we have cookies
    Posts
    646

    Re: Export DataReport to pdf?

    that would be right... although it still depends on how you create you app... try to experiment!
    WARNING: Excessive coding is dangerous to your health... if symptoms persist insult your doctor...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width