Hi,
I noticed it's possible to set a printer and papersource using DefaultPageSettings of UltraGridPrintDocument like this:
prnDoc.DefaultPageSettings.PrinterName = "Printer name"prnDoc.DefaultPageSettings.PaperSource = 15
However, instead of setting defaults i would like to make the settings for this specific document. So i wanted to use:
prnDoc.PrinterSettings.PrinterName = "Printer name"prnDoc.PrinterSettings.PaperSource = 15
The PrinterName property exists, but the PaperSource property doesn't exist. Am i approaching this in the wrong way or is this perhaps a suggestion for a next release?
Kind regards,Jacob Iedema
Hello,
Thank you for your feedback.
Let me know if you have any further question on this matter.
Sincerely,
Hristo
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support
I already was setting the papersource with DefaultPageSettings but i was hoping there was a better (more logical) way to set this for a specific document.
In that respect the question isn't solved but i keep using the DefaultPageSettings.
Thjx.
I just wanted to know if you were able to solve your issue based on my suggestions or you still need help? Just let me know.
Thank you.
UltraPrintDocument expose standard Microsoft DefaultPrinterSettings and PrinterSettings. The PrinterSettings object does not have property PaperSource, instead it expose PaperSources, which is a collection of PaperSource. That is why you shouldn’t use code like prnDoc.PrinterSettings.PaperSource = 15. For more information please look at the following link in MSDN: http://msdn.microsoft.com/en-US/library/system.drawing.printing.pagesettings.papersource%28v=VS.80%29.aspx
For more information about DefaultPageSettings please look at the following link:
http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.defaultpagesettings.aspx
Let me know if you have any further questions.