Hello, is there a way where someone can print a grid with headers and footers for print preview dialog. I have used the UltraGridPrintDocument but it only prints the contents of the grid. I would like to be able to add a header so users know what data the grid is showing plus images and stuff like that. Does anyone have any ideas?? It would be appreciated. Below is an image of what I am trying to accomplish.
How do you actually prind a WinGrid onto UltraPrintDocument and not an UltraGridPrintDocument; is it possible?
Hi
How to print multi texts in header.
Like
Header 1( Stock details - center aligned)
Header 2 (Date: Left aligned)
Header 3 (Bin: Right aligned)
using the line
e.DefaultLogicalPageLayoutInfo.PageHeader = "Stock Details"
i able to print only one header
Hi,
If I recall correctly, you separate the sections by using the tab character.
So in VB, it would be something like this:
e.DefaultLogicalPageLayoutInfo.PageHeader = DateTime.Now + vbTab + "Stock Details" + vbTab + "Bin"
or in C#:
e.DefaultLogicalPageLayoutInfo.PageHeader = DateTime.Now + \tStock Details\t" + "Bin"