HI expert i have query regarding Disabling Export option for SSRS Report,
i followed the link (https://dynamicsax4u.wordpress.com/2017/11/19/hide-export-file-format-ssrs-report-viewer-using-x/ ).
and its working on my all testing server correctly.
But when i export the same Expo to my Production server, it gives me the error, (syntax Error).
here What i am doing.
1. Add new reference library in Ax(Microsoft.ReportViewer.WinForms)
2. Create a method with following Code
public void hideExportButton()
{
System.Windows.Controls.UIElementCollection children;
Microsoft.Reporting.WinForms.ReportViewer reportViewer;
children = _axreportViewer_control.get_Children();
reportViewer = children.get_Item(0);
reportViewer.set_ShowExportButton(false);
}
3.Add my reports for which i want to disable export Option in Run Method of SRSReportViewer.
its working on my testing servers (more than 2 servers,)
but as i deployed my project(Expo) on my production server, it gives me syntax error on line (Microsoft.Reporting.WinForms.ReportViewer reportViewer; ).
plz guide .
*This post is locked for comments
ok i will try your suggestion
Thanks for prompt reply.
thanks for your prompt reply, i have already done the same as you suggested ,but still not working.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156