Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

SSRS: How to disable an export pdf option in .Net Reprot Viewer under SharePoint integration mode.

$
0
0

Dear All,

Please advice me how to disable an export pdf option in .Net Reprot Viewer programmed in SharePoint Application page?
The report is running under SharePoint integration mode, and processingmode of the report viewer control is "remote"

I tried to edit the reportserver.conifg but doesn't work.
And applied following code has no affect too.

------------------------------------------------------------------------------------------------------------------------

            foreach (RenderingExtension extension in ReportViewer1.ServerReport.ListRenderingExtensions())
            {
                if (extension.Name == "PDF")
                {
                    System.Reflection.FieldInfo info = extension.GetType().GetField("m_isVisible", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
                    info.SetValue(extension, false);
                }

            }

------------------------------------------------------------------------------------------------------------------------

Thanks for your help!

Regards,


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>