Page 1 of 1

load rtf file?

Posted: Mon Oct 25, 2010 11:45 pm
by abi
hi

how to load rtf file? and rich text parsing rtf file?

thx

load rtf file?

Posted: Tue Oct 26, 2010 8:37 am
by Alex K.
Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.

load rtf file?

Posted: Sat Oct 30, 2010 2:05 am
by abi
i have test.rtf on drive c:\wwwroot\test.rtf, how do i load that file from code? but not from report event
thx

load rtf file?

Posted: Mon Nov 01, 2010 6:05 am
by Alex K.
Hello,

You can use the following code in your code:

Code: Select all

            StiReport report = new StiReport();
            report.Load();
            Stimulsoft.Report.Components.StiRichText rt = report.GetComponents()["RichText1"] as StiRichText;
            RichTextBox rtb = new RichTextBox();
            rtb.LoadFile(@"e:\Sample.rtf");
            rt.RtfText = rtb.Rtf;
            report.Compile();
            report.Show();
Thank you.

load rtf file?

Posted: Sat Nov 06, 2010 8:33 pm
by abi
it's work

thank you

load rtf file?

Posted: Sun Nov 07, 2010 1:15 am
by Andrew
Great!

Have a nice day!
Thank you.