Number of copy
Leo Bidi
Montevideo, Uruguay
Hi, this is a very basic question but cant find the answer [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" />
I have a report that print 2 copies and want to print only some text in the first copy.
I've tried on the beforeprint of that text with variables like <CopyName> , <copy#> , etc etc, but none of them works.
What it's the name of the variable that contains the actual copy printing ????
Thanksss[/img]
Comments
- go "Code" tab and write a simple script that will give names to each copy. You can also do this in Delphi code;
- print a report.
Still I can't manage to work as I want.
I did what you've mentioned , this is my code in the report's code page.
and in my delphi code it says
but still in the two copies of my report the memo with copyname# text , prints '1'.
As I've mentioned before, how can I check what copy is printing , so I can disable another memo object to print in the second copy.
Many thanks for you invaluable help.
Regards
I did as you said but still cant find out which numer of copy is printing.
In the report beforeprint event I have
MemoCopy is the memo object with [CopyName#] text inside.
What I need is that if printing the first copy then Memotext its invisible.
Thanks and sorry for my inexperience.
Regards
Many many thanks..
procedure TForm1.frxReport1PrintPage(Page: TfrxReportPage; CopyNo: Integer);
begin
end;
this is my code when printing and on the Report.OnPrintPage event I have and then on the report I have a memo object that contains the same variable 'CopyNumber' but when printing , in both pages it prints "2", it seems that always prints the second copy.
I cant make the report prints 1 on the first copy and 2 in the second... " border="0" alt="mad.gif" />" alt=">" />[img]style_emoticons/<#EMO_DIR#>/mad.gif" style="vertical-align:middle" emoid="" border="0" alt="mad.gif" /> Can you tell me please what I'm doing wrong ?? Many thanks..[/img]
I've done earlier what you've mentioned in the code and the memo with the variable global prints perfect.
My problem is how can I check the content of that global variable because I need to print ONLY some objects in the first copy but not in the second one.
Just need that.
Best regards
I've did this way and works perfect. I put my solution here for any person who may need it.
Best regards