Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

PDF without dialogs

edited March 2009 in General
HI,

How can I generate a PDF file without showing any dialogs?

Thanks

Comments

  • edited March 2009
    > How can I generate a PDF file without showing any dialogs?


    I'm working on something similar right now.

    Create the required devices (TppPDFDevice) prior to printing, then call
    TppReport.PrintToDevices;

    Here's a quick example:

    lDevice := TppPDFDevice.Create(self);
    lDevice.FileName := ...
    lDevice.OtherSetting :=...
    lDevice.Publisher := ppReport1.Publisher

    ppReport1.PrintToDevices;

    lDevice.Free;

    Ed Dressel
  • edited March 2009


    http://www.digital-metaphors.com/rbWiki/Output/PDF/PDF_Fundamentals

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited March 2009
    Hi,

    I've tried setting showPrintDialog before and the print dialog don't show
    indeed, but the "PDF Export Setup" shows up everytime.
    When I try printToDevices nothing happens.

    Thanks

  • edited March 2009

    The example on rbWiki should work correctly. It uses RB's built-in PDF
    export. Download and give it a try.

    RB does not have a PDF Export Setup dialog. Perhaps you are using an RB
    add-on to do the PDF export? If so, then you try contacting the publisher of
    the component to ask about suppressing their dialog.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited March 2009
    You're right, it was a trace of the pragnaan. Wich from this moment on we no
    longer use.

    Thanks and sorry for the mistake.

  • edited March 2009
    Bingo! Thanks... Madt M.


This discussion has been closed.