Page 1 of 1

export to rtf

Posted: Tue May 17, 2011 2:06 am
by myintw
Hi,

I just want my report to export to rtf when i click on button. For instance, I have report created already and I have button in my application and let say 'Export' button. When i click on 'Export' button, i don't want to display my report in report viewer. Instead of displaying on report viewer, i want my report export to rtf straight away. Is there anyway to fix my problem. Thanks you so much in advance to Stimulsoft team.

Regards,
Win

export to rtf

Posted: Tue May 17, 2011 7:42 am
by Vladimir
Hello,

You can use the following code in the button click event:

Code: Select all

StiReportResponse.ResponseAsRtf(this.Page, report);
Thank you.

export to rtf

Posted: Tue May 17, 2011 8:08 pm
by myintw
Hi Vladimir,
Thank for your help, when I used this code, I got error and I think I need to add Library File or Something like using.Stimulsoft.Report . Any Idea for my issue. Thank you again.

Regards,
Win.

export to rtf

Posted: Tue May 17, 2011 8:13 pm
by myintw
Hi Vladimir,

Thank you, I got the solution for my problem. Just need to add using Stimulsoft.Report.Web; Thank for your reply, anyway.

Cheers,
Win.

export to rtf

Posted: Wed May 18, 2011 1:20 am
by Ivan
Hello,

We are always glad to help you.
Let us know if you need any additional help.

Thank you.