I have been trying to come up with a solution to print the data of a WinGrid that includes headers and footers similar to a report. Anyone have any ideas? Below is the link of what I would like to do. Thanks in advance,
Jose
http://i201.photobucket.com/albums/aa290/jrjosemartinez/sample.jpg
If you are using the Print/PrintPreview method of the grid, you can use the InitializePrint/InitializePrintPreview events and set properties on:
e.DefaultLogicalPageLayoutInfo.PageHeader
and
e.DefaultLogicalPageLayoutInfo.PageFooter
What if im using the UltraPrintDocument/UltraPrintPreviewDocument?
I don't think it matters. You would still use the same event of the grid and the same property.
Or am I wrong?