Hello,
is there anybody who can explain me the easiest way to print the text of an ultratexteditor?
Best regardsIsiraider
Hello Matt,
thank you for your fast answer! The Infragistics samples for printing are not really simple and not easy to understand...
I need a simple solution which just takes the text of the UltraTexteEitor and shows it in an UltraPrintPreviewDialog, where the user can print it...How can I display the report you created in your five lines of code in the UltraPrintPreviewDialog?The layout options are not so interested for the moment...
-isiraider
Isiraider,
There are a set of samples that ship with the NetAdvantage SDK that should be able to illustrate the use of the various elements in the Documents engine, which might be of good use for you to familiarize yourself with the layout options at your disposal. With that being said, the quickest way to simply add a text element to a report would be:
Report report = new Report();ISection section = report.AddSection();IText textElem = section.AddText();textElem.AddContent(this.ultraTextEditor1.Text);report.Publish("MyPDF.pdf", FileFormat.PDF);
-Matt