User (Old forums)MemberSeptember 5, 2014 at 8:21 amPost count: 23064
Really need to know how to show a print preview with a default paper size chosen as A4
I’m having a datagrid and showing a print preview
new Size(500, 700),
Is it possible to set A4 as a default paper size?
Imported from legacy forums. Posted by Anastasia (had 650 views)Fawzi [Xceed]MemberSeptember 5, 2014 at 12:02 pmPost count: 722Hi Anastasia,You could use the last parameter of the ShowPrintPreviewWindow to determine the page size. You could refer to the following link on our documentation center for further details, regarding this method, at:http://doc.xceedsoft.com/products/XceedWpfDataGrid/#Xceed.Wpf.DataGrid.v5.3~Xceed.Wpf.DataGrid.DataGridControl~ShowPrintPreviewWindow.htmlYou could also refer to the “Printing Sample Application”, which comes along with the Xceed package, as an example on how to customize printing. The sample should be installed at the following path on your computer, by default:C:\Xceed Samples\Xceed DataGrid for WPF Professional Edition v5.3\CSharp\Printing
Imported from legacy forums. Posted by Fawzi [Xceed] (had 297 views)User (Old forums)MemberSeptember 8, 2014 at 8:39 amPost count: 23064
Was setting this parameter to different values, using various dpi values.
At the end set the default paper size for the printer in the control panel and this worked. Can’t make all users to do this, but at least I found the way to do this.
And the default value used as in the combobox Size size = new Size(793.70, 1122.52); that would be 96 dpi. Don’t know if it’s actually working. Would be much more helpful and straightforward if there was something like dataGrid.PrintPreview.PaperSize = someEnumWithAllPaperSizes.A4;
Anyway thanks for your reply
Imported from legacy forums. Posted by Anastasia (had 169 views)Fawzi [Xceed]MemberSeptember 9, 2014 at 8:55 amPost count: 722
I have open a feature request to add PageSize enum to the PreviewPrint class. We will notify you by email as soon as it becomes available for download. Thank you for bringing this to our attention.
Imported from legacy forums. Posted by Fawzi [Xceed] (had 633 views)Diane [Xceed]ModeratorJuly 21, 2016 at 5:07 pmPost count: 1353
The following feature was added in the latest version:
“It is now possible to set different page settings through a PrintTicket when calling the Print or PrintPreview methods.”
Download Link: http://forums.xceed.com/latest-xceed-toolkit-plus-for-wpf
- You must be logged in to reply to this topic.