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

ppViewer

edited February 2005 in General
Delphi 5 Enterprise, RB Enterprise 7.02

I put a ppViewer over a form and a report in another one.

when i execute ppReport1.PrintToDevices, why doesn't events in
BeforeAutosearchDialogCreate, and OnGetAutoSearchValues execute ?
i can't see anything.
if i Use Report1.Print. I see the report but dont't in ppviewer component of
my form.

Regards



Jorge C. Mosquera R.
Investigaci?n y Desarrollo
www.sitis.info

Comments

  • edited February 2005

    When using Print it fires those events prior to internally calling
    PrintToDevices.

    When using PrintToDevices you have to write the code to prepare the report.
    See the TppReport.Print method (ppReport.pas) and its ancestor
    TppProducer.Print (ppProd.pas)


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



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited February 2005
    Thank's Nard

    i'm beginner with Delphi, can you show me what must i do ?
  • edited February 2005

    Example...

    if myReport.DisplayAutoSearchDialog then
    myReport.PrintToDevices;

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



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.