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

Embed Preview Screen

edited March 2004 in General
Is there a Preview Panel I can put on a form of mine? I want a few tabs
at the top and in one i want a print preview of the report.

How could I do this?

Comments

  • edited March 2004
    Hi Chris,

    Take a look at the TppPrintPreview class inside the ppPrvDlg.pas for an
    example of embedding the TppPreview inside a form. This is how the preview
    can be viewed by itself and in conjunction with the designer on a tab sheet.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2004
    Nico Cizik (Digital Metaphors) wrote:


    Okay that appears to be working, but how do I tell the report to use my
    custom preview pane on my tabsheet3 instead of the normal printpreview.
    I treid the ppRegisterForm, but it seems to want a form name. If i
    give it the form name i'm using (the one with the tabsheet) it has an
    access violation. How can I tell it to use form1.tabsheet3 ?
  • edited April 2004
    Chris M wrote:


    Okay forget all I have said before. I didn't realize there was a Viewer
    I an just drop on the form. All I want now is it to have the bar across
    the top like the regular preview does. is that achievable?
  • edited April 2004
    Hi Chris,

    You're right... the previewer is nothing more than a TppViewer with some
    advanced controls added to it. The current entire previewer is created in
    code inside the TppPreview class. (ppPreview.pas). Take a look at this to
    see how the controls are created in ReportBuilder.

    --
    Best Regards,

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