I am using SAP crystal reports in Visual Studio 2010.I want to customise crystal report viewer
export options. That is, I want to show only export to pdf,and to excel in my crystal report viewer.
How I can do this
6
votes
possible duplicate of Crystal Report Viewer - Programmatically restricting File Format options
– Emanuele Greco
3 Answers
5
votes
4
votes
First of all include below namespace on top of your code behind:
using CrystalDecisions.Shared;
then,write below code in your page load event as:
protected void Page_Load(object sender, EventArgs e) {
CrystalReportViewer2.AllowedExportFormats = (int) (ViewerExportFormats.ExcelRecordFormat | ViewerExportFormats.PdfFormat);
}