Currently i am using Infragistics.Documents.Reports.Report,How to set the following properties from printing preferences to the report object
1)No of Copies
2)Print on Both sides
3)Color or Black and white print
Hi,
These links are for our WPF and Windows documentation with detail on how to programmatically acquire the PrintQueue and its PrintTicket and modify the print settings before printing the report from the ReportViewer.
Here is WPF
http://help.infragistics.com/Help/Doc/Reporting/2014.1/CLR4.0/html/How_to_Print_a_Report_Programmatically_using_WPF.html
And here is Windows
http://help.infragistics.com/Help/Doc/Reporting/2014.1/CLR4.0/html/How_to_Print_a_Report_Programmatically_using_Windows_Forms.html
This link is included on those pages but it may be helpful to point out the Microsoft site concerning the PrintTicket class. It includes the code for the Collation and Duplexing. You’d want to look into the CopyCount and OutputColor as well.
http://msdn.microsoft.com/en-us/library/system.printing.printticket.aspx
Please let me know if you have further questions.
Thanks for the reply.I am using WPF application.You have shared the link which uses XamReportViewer but I am using Infragistics.Documents.Reports.Report for printing my report.But the report object print method takes only printer name as parameter.Is there any way to set the printsettings to the report object
HI,
I think the idea is to use the Print method of the Report, which will show the PrintDialog where your can change the setting for the printing. Does that work for you? Or do you need to preset the values?
I hadn’t heard back from you. I was wondering if you had further questions.