HIDE BLANK PAGE
Hi!
I have a report (rb Enterprise 10.07 + delphi 7)to list customer-invoices, 1
page for invoice_num. I hide all items and subreport when, by example, the
agent of the invoice is 1. The problem is that there are blank pages that I
want to hide.
I want add source in the report to hide this pages.
How can the report hide the blank pages (1,4,6)
Example
INVOICE NUM AGENT NUM PAGE NUM STATE
1 1 1
BLANK
2 2 2
DATA
3 2 3
DATA
4 1 4
BLANK
5 3 5
DATA
6 1 6
BALNK
I have a report (rb Enterprise 10.07 + delphi 7)to list customer-invoices, 1
page for invoice_num. I hide all items and subreport when, by example, the
agent of the invoice is 1. The problem is that there are blank pages that I
want to hide.
I want add source in the report to hide this pages.
How can the report hide the blank pages (1,4,6)
Example
INVOICE NUM AGENT NUM PAGE NUM STATE
1 1 1
BLANK
2 2 2
DATA
3 2 3
DATA
4 1 4
BLANK
5 3 5
DATA
6 1 6
BALNK
This discussion has been closed.
Comments
For future reference, please use your real name when posting to these
newsgroups.
How are you separating each invoice into separate pages? If for instance
you are using groups with the NewPage property set to True, you would
temporarily need to set this to False for the invoices that do not contain
any data.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I have a master data (mainData) and many details (detaildata1, detaildata2,
detaildata3, detaildata4,etc). When detaildata4.reference is 'HIDE', I hide
all the component in the main report page (dbText, label, subreport, etc)
with source in the report
DBDetailData4ReferenceONgetTExt(text:string)
begin
if (text = 'HIDE') then
begin
detail1.visible:= false;
.....
.....
end
else
begin
detail1.visible:= true;
end
end;
it's no depends of the group report, when DBDetailData4Reference "hide" all
the "items" the page report is "empty" but it print blank-page
is it possible hide the blank-pages?
Thanks
newsgroup guidelines located at the following web address.
http://www.digital-metaphors.com/support/newsgroups.html
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I don't understand, my real name is Ilisoft21 (my company name).
where is the problem?
can you help me with the question HIDE BLANK PAGES IN REPORT?
Thanks!
due to potential spam reasons, we are not strict about posting with a valid
email address, however at a very minimum we require that you post using at
least your first name. "Ilisoft21" is not an appropriate posting name.
http://www.digital-metaphors.com/support/newsgroups.html
Also, please do not use all caps when typing a question. This implies that
you are yelling and can be seen (by some) to be rude.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Ok! but, please again... could you answer the question about hide blank
pages?
Thanks!
by the detail band. I would suggest that you try setting the PrintHeight of
the DetailBand to phDynamic and check the value of your datafield (and hide
the components) in the DetailBand.BeforePrint event or
DetailBand.BeforeGenerate event.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I try to use the DetailBand.BeforePrint , assign the detailband.height = 0 o
detailband.visible = false, but the page appear "blank", no hide this pages.
So I've get hide the report using grouppage, it hide pages, but the problem
that is launch one blank page. can you help me?
procedure GroupHeaderBand1BeforePrint;
var posicion:integer;
begin
if (DBModeloObs.Fieldvalue <> null) then
posicion:= Pos('FORRO', DBModeloObs.FieldValue)
else
posicion:= 0;
if (posicion <= 0) then
begin
GroupHeaderBand1.Visible:= false;
end
else
begin
GroupHeaderBand1.Visible:= true;
end;
end;
Please create a simple example demonstrating the issue that I can run on my
machine and send it to support@digital-metaphors.com in .zip format and I'll
take a look at it for you.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com