Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stop Export to Crystal Report

Status
Not open for further replies.

Tig30

IS-IT--Management
Feb 20, 2006
3
GB
Hi,

I'm using CRXIR2/VisualStudio2005 to display reports on a webpages.

Is there a way I can stop users being able to export to a crystal report from the viewer? There are a few rules etc that I do not want clients to be able to see.
any help appreciated.
 
Depending on how you are calling you report in code, the viewer has a CrystalReportViewer.HasExportButton Property
which you should be able to set before displaying the viewer.
 
thanks but I wanted to keep the button and still allow export to word, pdf, excel etc but not to crystal report.

I cant see any way of only including certain options or excluding others?
 
Export depends on a dll, one per function, I think. I'd suppose that a machine without the correct dll would be unable to export, though I don't know quite how you'd do this.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
In CR 9 the DLL is U2fcr.dll, not sure about CRXIR2 though, probably similar.

There isn't a direct option to do so, but I think that you only have export options available for the DLLs installed.

Anyway, that should get you close...

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top