Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1065
Print Ultratexteditor's content
posted

Hello,

is there anybody who can explain me the easiest way to print the text of an ultratexteditor?

Best regards
Isiraider

Parents
  • 37774
    Suggested Answer
    posted

    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

Reply Children