export to rtf

Stimulsoft Reports.WEB discussion
Post Reply
myintw
Posts: 29
Joined: Mon May 09, 2011 8:02 pm
Location: Perth

export to rtf

Post 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
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

export to rtf

Post by Vladimir »

Hello,

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

Code: Select all

StiReportResponse.ResponseAsRtf(this.Page, report);
Thank you.
myintw
Posts: 29
Joined: Mon May 09, 2011 8:02 pm
Location: Perth

export to rtf

Post 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.
myintw
Posts: 29
Joined: Mon May 09, 2011 8:02 pm
Location: Perth

export to rtf

Post 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.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

export to rtf

Post by Ivan »

Hello,

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

Thank you.
Post Reply