load rtf file?

Stimulsoft Reports.WEB discussion
Post Reply
abi
Posts: 55
Joined: Mon Feb 22, 2010 4:18 pm
Location: indo

load rtf file?

Post by abi »

hi

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

thx
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

load rtf file?

Post by Alex K. »

Hello,

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

Thank you.
abi
Posts: 55
Joined: Mon Feb 22, 2010 4:18 pm
Location: indo

load rtf file?

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

load rtf file?

Post 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.
abi
Posts: 55
Joined: Mon Feb 22, 2010 4:18 pm
Location: indo

load rtf file?

Post by abi »

it's work

thank you
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

load rtf file?

Post by Andrew »

Great!

Have a nice day!
Thank you.
Post Reply