Hi,
I'm using version 10.3 of the webgrid and my pages are written in vb.net. Is there a simple way to make a header dsiplay on the exported pages? Seems like it should be a simple thing, but I can't figure it out.
I tried this:
UltraWebGridDocumentExporter1.Page.Title =
"Quick Report"
UltraWebGridDocumentExporter1.Page.Header.InnerText =
"Did it work???"
UltraWebGridDocumentExporter1.TargetPaperOrientation = Infragistics.Documents.Report.
.Landscape
but nothing displays.
Thanks in advance for your help!
JCC
Hi JCCDEVEL,
Glad that your issue has been resolved. Please contact me if I can be of further assistance.
Thank you Petar - I really appreciate it!
Thank you for posting in the community.
You can add titles and text to your exported document using the Infragistics Document Engine. Here is some sample code which would export an UltraWebGrid to a separate report section with some header text in the beginning of the section:
Report report = new Report(); ISection section =report.AddSection(); ISectionHeader header = section.AddHeader(); header.Height = 100; header.Repeat = false; IText headerText = header.AddText(0, 0); headerText.AddContent("Section header text"); UltraWebGridDocumentExporter1.Export(UltraWebGrid1, section);
Additional useful resources and examples on this topic can be found at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=DocumentEngine_Section_Element.html
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=DocumentEngine_Report_Layout.html
If your requirement is to show the grid headers on every page of the exported document I would suggest that you refer to the following thread:
http://community.infragistics.com/forums/p/2862/23140.aspx
Please feel free to contact me if you have any questions.