Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Report copies with different header per copy Post Reply Post New Topic
Author Message
Vehnet
Newbie
Newbie


Joined: 09 Mar 2011
Online Status: Offline
Posts: 1
Quote Vehnet Replybullet Topic: Report copies with different header per copy
     Posted: 09 Mar 2011 at 9:54pm
I have a multi page invoice report which I wish to print twice.
The header on the 1st printed copy needs to say "Original",
but the header on the 2nd printed copy needs to say "Copy".
 
Is this possible in Crystal ?
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 10 Mar 2011 at 4:07am

I am assuming that you are selecting the tables and joining straight to them to create your report (not using a stored proc).  If so, I would try creating a command object the returns 2 rows, 1 and 2, something like:

select rowid =1
union
select rowid =2
 
now join your existing tables on this command object, and then you can programatically set the header, and most importantly, there are now 2 rows of data.  CR will only print what it sees.  Before, it only saw 1 row, and so it would never do what you want.  This simple trick should allow you print your 2 copies.
 
HTH
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum