Interactivity in the exported report

Stimulsoft Reports.NET discussion
Post Reply
sagamor
Posts: 2
Joined: Mon Jul 18, 2016 9:33 am

Interactivity in the exported report

Post by sagamor »

I need interactivity to be available only in preview mode, but when I export to PDF interactivity is still available. How can I achieve that?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Interactivity in the exported report

Post by HighAley »

Hello.

Could you specify what kind of interaction you want do disable?

Thank you.
sagamor
Posts: 2
Joined: Mon Jul 18, 2016 9:33 am

Re: Interactivity in the exported report

Post by sagamor »

hyperlink (disable the ability click, change the cursor and tooltip)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Interactivity in the exported report

Post by Alex K. »

Hello,

In this case, you can disable hyperlink before Export in the Exporting event of the report:

Code: Select all

foreach (StiPage page in this.RenderedPages)
{
    foreach (StiComponent comp in page.Components)
    {
        if (comp is StiText)
            comp.HyperlinkValue = "";
    }
}
Thank you.
Attachments
ReportSample.mrt
(4.28 KiB) Downloaded 124 times
Post Reply