Printing multiple copies of Crystal Report from C#, Visual Studio 2008

g_johnson
g_johnson used Ask the Experts™
on
I am using this command to render a Crystal Report to a printer:

                        rpt2.PrintToPrinter(numlabels, true, 0, 0);

Though numlabels is set to 313 in my test cast, we are getting only one label to go to the printer.

numlabels is an Int32

Am I doing something wrong?


Thanks,
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Éric MoreauSenior .Net Consultant
Top Expert 2016

Commented:
have you tried 10? also try False instead of True for the collated parameter
Éric MoreauSenior .Net Consultant
Top Expert 2016

Commented:
apparently, this parameter is not for labels, check http://www.ehow.com/how_8768544_fill-one-record-crystal-reports.html

Author

Commented:
do you mean numlabels = 10.  Yes, I've tried different numbers.  If you VS2010, I can't go there yet.  I have already tried Falsee for collate, but it didn't work.
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

Mike McCrackenSenior Consultant
Most Valuable Expert 2011
Top Expert 2013

Commented:
What printer?

What version of Crystal?

mlmcc

Author

Commented:
I should have made this clear.  This is not sheets of X number of labels per sheet, rather it is one label per sheet.  Therefore, it works just like any other report would.  However, I'm going to continue to read that article to see if I can pick up a tip on some other way to do it.

Thanks.  Do you have any other thoughts on this?  The best I can find on the web is "it should work".

Author

Commented:
mlmcc -- Zerbra printer (I'll try to get more details).  Crystal 2011.
Senior Consultant
Most Valuable Expert 2011
Top Expert 2013
Commented:
If you can find the users manual for the printer or check the printer driver.
Does it have a number of copies option?

I think Crystal uses that printer feature to do multiple copies rather than printing it x number of times

mlmcc

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial