Hi
I have 1 Layout & printing it 3 times. I want on first print it should print Original & on second print 'Duplicate' & on third print 'Triplicate'
Thanks
Hi
I have 1 Layout & printing it 3 times. I want on first print it should print Original & on second print 'Duplicate' & on third print 'Triplicate'
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit MohantyPosted Dec 4, 2023, 9:12 AM
Check the below code, this may help you to resolve your issue.
Jayraj ChhayaPosted Dec 3, 2023, 4:28 PM
To achieve the desired result of printing multiple copies of an invoice with different labels using Crystal Report in C#, you can follow these steps:
Create a Crystal Report layout for the invoice with the necessary fields and design elements.
In your C# code, create an instance of the Crystal Report document and load the report layout.
Set the number of copies to be printed using the
PrintToPrintermethod of the Crystal Report document. This method allows you to specify the number of copies to be printed.To add the labels "Original," "Duplicate," and "Triplicate" to each copy, you can use the
ReportDocument.PrintOptionsproperty. This property provides access to various print options, including the printer name, number of copies, and collation.Use the
ReportDocument.PrintOptions.PrinterNameproperty to set the printer name to which the report should be sent.Use the
ReportDocument.PrintOptions.Copiesproperty to set the number of copies to be printed.Use the
ReportDocument.PrintOptions.Collatedproperty to specify whether the copies should be collated or not.Finally, call the
PrintToPrintermethod of the Crystal Report document to print the invoice with the specified number of copies and labels.Here's an example code snippet that demonstrates how to achieve this:
Make sure to replace "InvoiceReport.rpt" with the actual path and filename of your Crystal Report layout file, and "Your Printer Name" with the name of your printer.