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
Hi thanks for your answers.
I think was a bit confused bout the inch/mm thing?When editing the margins in code it's inch, in the GUI it's mm, I didn't notice it at first.
But now it works