Hi
I have several problems with printing an ultragridview.
1. isn't it possible to select which pages I'd like to print from the PreviewDialog (all I can do is
printing every page)?
2. I'm trying to set the bounds of my pages (per default they are set to approx 25mm) in code?How can I do that?
thanks
mhaeberle said: 1. isn't it possible to select which pages I'd like to print from the PreviewDialog (all I can do is printing every page)?
This is typically handled by the PrintDocument which allows the user to choose a printer, the page range, and the number of copies. So it's not on the PrintPreviewDialog. I'm not entirely sure why, but it might be because the printer has to be known before the PrintPreviewDialog is shown in order for the preview to be accurate.
You could Submit a feature request to Infragistics for this.
The Print / PrintPreview sample in the WinGrid Samples explorer demonstrates how to set the page range in code.
mhaeberle said:2. I'm trying to set the bounds of my pages (per default they are set to approx 25mm) in code?How can I do that?
I' not sure what you mean by "bounds", but I think you might mean Margins. In which case, you can go to File-->Page Settings and change the margins there.
could you be more specific the "print / printPreview sample in the WinGrid Sample"? where can i find them?
Thanks
Hello ngflycloud,
You could see the sample in our 'Windows Forms Feature Browser'.
If you have this installed(if you have marked 'Samples' when installing Net Advantage), you could run it from 'Start Menu' -> 'All Programs' -> 'Infragistics' -> 'Windows Forms' -> 'Samples' -> 'Samples (local)'.
When it loads, please navigate to the 'Grids' tab => 'Samples Explorer', launch it and then 'Launch' the 'Print / Print Preview' sample. Or you can type in the 'Search:' "'Print / Print Preview'".
Please do not hesitate to contact me if you need any additional assistance.