[RESOLVED] 3 Copies of same Crystal report
I am using VB6, CR 8.5 and Access database. I have a want to print 3 copies of same invoice with title 1. Original 2. Duplicate 3. Triplicate with crystal report CrInv which has text object text1 on my report. when i press "Print" button from my VB form i want to print 3 copies with text1 field value as "Original, "Duplicate and Triplicate". How can I do this?
Re: 3 Copies of same Crystal report
Create another parameter and use it on the report where you want it to display "Original" etc. Then when you open your report you pass the appropriate value. Thiis will work if your performing a loop with the .PrintOut method.
Re: 3 Copies of same Crystal report
i dont know how to perform a loop with .PrintOut method :( can you please help me?
Re: 3 Copies of same Crystal report
Can you please write codes in vb to print 3 copies of CRInv ?
Re: 3 Copies of same Crystal report
I have a couple of code examples in my signature and more on the forums.
Look at - VB6/CR Print Dialog Ex.
VB Code:
'...
'...
Dim i As Integer
For i = 1 To 3
'Set Orig. Copy, Trip etc here by passing param.
'...
'Open Report/Refresh
oReport.PrintOut True, 1
Next
Re: 3 Copies of same Crystal report
Thans RobDog888 this will solve my prob...