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

Changing settings in Print Preview

edited March 2003 in General
Is there a way to make changes in the print preview which are immediately
seen in the preview panel. I would like the user to be able to choose
between portrait/landscape or 8.5x11/8.5x14 in the preview window and
showing the changes in the preview panel. I have templates for each option
and would like to load the templates as needed.

Is this even possible and if so, can you point me in the right direction?

Thanks,
Mark Greenhaw
Vulcan Software Systems

Please do not attempt to reply to this message:
To email me:
Remove the X's before and after xmark@onedomain.comx

Comments

  • edited March 2003
    The call to Report.Print causes the preview form and a viewer to be created.
    Yes, you can change the previewed page from the preview form, however, you
    can't change the report template because you are inside a call to
    Report.Print. You should create a TppViewer on a form so that you can
    connect and disconnect the report as you like. Then you can make a call to
    Viewer.RegenerateReport and use the methods on the TppViewer class to
    traverse the pages. Here is a simple example to create a viewer based
    project and can rerequest the page from the current report if the data
    changes.

    http://www.digital-metaphors.com/tips/SimpleViewer.zip


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.