Page 1 of 1

Interactivity in the exported report

Posted: Mon Jul 18, 2016 9:47 am
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?

Re: Interactivity in the exported report

Posted: Mon Jul 18, 2016 12:44 pm
by HighAley
Hello.

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

Thank you.

Re: Interactivity in the exported report

Posted: Tue Jul 19, 2016 7:56 am
by sagamor
hyperlink (disable the ability click, change the cursor and tooltip)

Re: Interactivity in the exported report

Posted: Wed Jul 20, 2016 5:09 pm
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.