Hi, I'm still new to infragistic grid. I'm looking for an example of using ultragridprintdocument to print a ultrawingrid and also print a picture in the page header. I really appreciate for any help.
Thank you.
Hello,
I believe the answer your question was answered here:
http://www.infragistics.com/community/forums/t/47977.aspx
I updated and attached the sample to the latest version of Infragistics. Keep in mind that this sample is intended to show an image small enough to fit inside the header area. Any bigger and the image will expand behind the grid.
Thanks for your quick rely. I saw this forum before but I'm looking for a way to insert bigger image without being expanded behind the grid.
For example: I have a form which contains a panel called panelHeader and a ultrawingrid. I plan to use UltraWinGridPrintDocument to draw the image of my panelHeader on the top of the print page, then print the grid (Please look at attached image)
Updated: Also, I just want the panelHeader image to appear on the first page. I don't want it to repeat on following pages.
Hello Nhung,
Yes you can do that by setting the height property on the header object of the UltraGridPrintDocument. Keep in mind that you won't be able to set this property in the PageHeaderPrinting since it's in the middle of the printing operation. Form1 load event worked fine. Let me know if you have any quesitons.
Ex,
this.ultraGridPrintDocument1.Header.Height = 50;
Thanks, I got it now.