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

Command PrintToDevices don't show AutoSearchDialg

edited May 2008 in End User
Hello,

I'm a Sander from Brazil, i'm using your product,
ReportBuilder 10.06 DEMO and Delphi 7 version.

I'm trying build application MDI, where i have one Form1 MDIForm,
and using the component ppViewer in Form2 MDIChild,

When i call the command Print from component ppReport, the
AutoSearchDialog appears, but when i use the command PrintToDevices,
for View the Report in ppView component, the AutoSerachDialog not appears.

What's wrong with my logical in delphi, exists some example for me?
or What can i do?

Thank's and i'm sorry for my english.



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited June 2008
    For future referece please use your real name when posting to these
    newsgroups.

    The intent of PrintToDevices is simply generate the report pages to
    connected devices (Viewer, Archive, Printer, etc). The developer has total
    control over which dialogs you want to show etc. The Print method will
    initialize the parameters and show the dialog(s) automatically.

    If Report.Initializeparameters and Report.DisplayAutoSearchDialog then
    Report.PrintToDevices;

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.