web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Disabling Export Options for Report

(0) ShareShare
ReportReport
Posted on by 1,536

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

I have the same question (0)
  • munsif Profile Picture
    1,536 on at

    thanks for your prompt reply, i have already done the same as you suggested ,but still not working.

  • munsif Profile Picture
    1,536 on at

    ok i will try your suggestion

    Thanks for prompt reply.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans