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.
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 ?
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?
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.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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 ?
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?
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com