Crystal Reports Multiple Copies Print Problem 
Author Message
 Crystal Reports Multiple Copies Print Problem

Hi,
I hope someone has encountered this problem.
I am using:
VB 6.0 (SP 5)
Crystal Reports 8.5.0.217
Windows 98
HP Laserjet printer

Here is the problem I am encountering.  

Whenever I try to print multiple copies of the report from the vb app,
the
copies multiply themselves. (ie. If I ask for 2 copies I will get 4,
If I
ask for 3 copies I will get 9)  I tried printing to different printers
and
from different machines and the same thing happens.  This is happening
at a client site, so I don't have Crystal Reports installed to try
printing directly from Crystal Reports.  Any have any clues on this
one??

Here is the code I am using to print for report:

            sSelect = "{qheader.quotenum} = " + quoteNum
            CRQuote.SelectionFormula = sSelect

            CRQuote.ReportFileName = App.Path + "\quote.rpt"

            numCopies = 1

            Screen.MousePointer = HOURGLASS
            retval = PrintDialog(CDPrint, numCopies)
            Screen.MousePointer = HOURGLASS
            CRQuote.CopiesToPrinter = numCopies
            CRQuote.Destination = 1

            CRQuote.Action = 1

Let me know if you need more information.

Thanks much,
Rhonda



Wed, 15 Jun 2005 02:05:51 GMT  
 Crystal Reports Multiple Copies Print Problem
Rhonda,

It looks like you're telling the printer to print '3' copies then telling
Crystal to do the same, hence you get the square of however many copies you
actually want.  Tell the printer to print 1 copy and Crystal to print the
number of copies you actually want:

retval = PrintDialog(CDPrint, 1)
...
CRQuote.CopiesToPrinter = numCopies

Hope this helps,

NEIL.


Quote:
> Hi,
> I hope someone has encountered this problem.
> I am using:
> VB 6.0 (SP 5)
> Crystal Reports 8.5.0.217
> Windows 98
> HP Laserjet printer

> Here is the problem I am encountering.

> Whenever I try to print multiple copies of the report from the vb app,
> the
> copies multiply themselves. (ie. If I ask for 2 copies I will get 4,
> If I
> ask for 3 copies I will get 9)  I tried printing to different printers
> and
> from different machines and the same thing happens.  This is happening
> at a client site, so I don't have Crystal Reports installed to try
> printing directly from Crystal Reports.  Any have any clues on this
> one??

> Here is the code I am using to print for report:

>             sSelect = "{qheader.quotenum} = " + quoteNum
>             CRQuote.SelectionFormula = sSelect

>             CRQuote.ReportFileName = App.Path + "\quote.rpt"

>             numCopies = 1

>             Screen.MousePointer = HOURGLASS
>             retval = PrintDialog(CDPrint, numCopies)
>             Screen.MousePointer = HOURGLASS
>             CRQuote.CopiesToPrinter = numCopies
>             CRQuote.Destination = 1

>             CRQuote.Action = 1

> Let me know if you need more information.

> Thanks much,
> Rhonda



Wed, 15 Jun 2005 16:13:08 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Printing multiple page report to multiple bins for collating vb4.0 Crystal 5

2. Printing multiple copies with Crystal 5.0 Professional

3. Printing Crystal Reports without Crystal Control ActiveX or Crystal Reports API call

4. Printing report in multiple copies from VBA

5. Printing Multiple Copies of an Access Report in VB

6. Crystal Reports ANd VB 6.0 Printing reports using CRPEAUTO Object, specifying paper orientation problem

7. printing the same record multiple times in Crystal Reports

8. Crystal Question - Printing multiple jobs from one report

9. Crystal Reports 5.0 32 Bit prints 999 copies

10. Crystal report: detecting when hard copy has printed

11. printing a report to multiple bins vb4 crystal rpt5

12. printing report to multiple bins vb4 crystal 5

 

 
Powered by phpBB® Forum Software