How not to print a page according to a data ?
jezabel
Angers, France
Hi everyone,
I have to print bills for some companies but according to the type of company, the page doesn't need to be printed.
I get the type of company in the masterdataband. It is a 2 pass report yet.
If I try to stop or terminate the report, nothing is printed.
In Delphi, to run the report we put :
frxReport.PrepareReport;
if not frxreport.Terminated then
frxReport.ShowPreparedReport
Can anyone help me ?
Thank you in advance
Jez
I have to print bills for some companies but according to the type of company, the page doesn't need to be printed.
I get the type of company in the masterdataband. It is a 2 pass report yet.
If I try to stop or terminate the report, nothing is printed.
In Delphi, to run the report we put :
frxReport.PrepareReport;
if not frxreport.Terminated then
frxReport.ShowPreparedReport
Can anyone help me ?
Thank you in advance
Jez
Comments
is up to you Without more information cannot be more specific.
It is a simple page report. But 'start a new page' is set on the MasterDataBand.
I've already tried the visible property of the page report, but certainly not at the right place.
There is no TitleBand. The MasterDataband contains the title and the companies address.
Here is a piece of my code :
I hope it's usefull to understand.
Thanks again
Jez
masterdata1.visible := not (<dataset."fieldname"> = 0);
The masterdataband is not visible but not the others.
Even if I put the same code for each band (GroupHeader1.Visible := MasterData1.Visible;) in their obp event.
if you can please post a demo project in the binaries news group.