Hello everyone,
anyone could help me about if it is possible write a title in a PDF document export ? And how ?
Thanks
best regards
Pablo
Pablo,
What do you mean by a title? If you mean a header you can use the AddHeader method off of an ISection and add the content there. If you mean the actual title of the PDF document, you can access the report.Info.Title property.
-Matt
Thank you very much, Matt
Hi Matt
sorry but I am a new user and I can't to do what you suggest me. I want type a title before export and that it appear in the first page (or in each) of PDF document.
Can you help me again?????
If you know and I you can, can you explain to me with an example in code?
Thank you again!!
The following code illustrates what I was talking about with creating a header in the section:
Report report = new Report();ISection section = report.AddSection();ISectionHeader header = section.AddHeader();header.Height = 30;header.AddText(0, 0).AddContent("Header Text");this.ultraGridDocumentExporter1.Export(this.ultraGrid1, section);
If you only want the header to appear on the first page, you can set the Repeat property of the header to false.
Matt,
a million of thanks. But a last question. How can I save it ? Or how can I see it? Because I used this method : export (Me.ultragrid1, filename) but if I use export (Me.ultragrod1, section) I don't know how can I see it.
Thank you one more time.
Where can I learn about this themes? How did you learn / read about this themes ?