Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Disabling Export Options for Report

Posted on by 1,534

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

  • munsif Profile Picture
    munsif 1,534 on at
    RE: Disabling Export Options for Report

    ok i will try your suggestion

    Thanks for prompt reply.

  • munsif Profile Picture
    munsif 1,534 on at
    RE: Disabling Export Options for Report

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans