Hide a page in the printout.
Hello:
I have a report looking like
MainPage----PBSection1
|
|-----PBChild1
|------PBChild2
(child 1 and 2 contains subreports)
I use a own Preview Window. What I like to do is to have some settings to
chose if I like to show Child1 or not.
I have tried to solve this by setting NewPage to false in ppChild2 and
the RecordCount:=0 to the pipeline connected to PBChild1. It seems to
work the first time i print. But if I change the settings
and do a :
ppViewer.Reset;
DllPreviewForm.ppViewer1.GotoPage(TppReport(DllPreviewForm.ppViewer1.Report).AbsolutePageCount);
ppViewer.FirstPage
The First page disapear as I like to. But the Second page is printed Twice.
What are i'm doing wrong. How can I hide the first page based on my
settings in runtime?
I have a report looking like
MainPage----PBSection1
|
|-----PBChild1
|------PBChild2
(child 1 and 2 contains subreports)
I use a own Preview Window. What I like to do is to have some settings to
chose if I like to show Child1 or not.
I have tried to solve this by setting NewPage to false in ppChild2 and
the RecordCount:=0 to the pipeline connected to PBChild1. It seems to
work the first time i print. But if I change the settings
and do a :
ppViewer.Reset;
DllPreviewForm.ppViewer1.GotoPage(TppReport(DllPreviewForm.ppViewer1.Report).AbsolutePageCount);
ppViewer.FirstPage
The First page disapear as I like to. But the Second page is printed Twice.
What are i'm doing wrong. How can I hide the first page based on my
settings in runtime?
This discussion has been closed.
Comments
--
Tom Ollar
Digital Metaphors Corporation
http://www.digital-metaphors.com
info@digital-metaphors.com