Display PDF and Excel export options in Crystal Reports?

泄露秘密 提交于 2019-12-11 13:14:42

问题


I need to Remove the Word, Rpt and rtf option in Crystal report Export option. Is it possible? I need only two option pdf and Excel. If possible please advice.


回答1:


Using CRVS2010 , you can remove unwanted export Option.

A new feature of CRVS2010 is the ability to modify the available export formats from the viewer export button. The following C# sample code demonstrates how to set the CrystalReportViewer to export only to PDF and Excel file formats:

int exportFormatFlags = (int)(CrystalDecisions.Shared.ViewerExportFormats.PdfFormat | CrystalDecisions.Shared.ViewerExportFormats.ExcelFormat);
CrystalReportViewer1.AllowedExportFormats = exportFormatFlags;

For More Details Please refer below link..

http://scn.sap.com/community/crystal-reports-for-visual-studio/blog/2011/01/26/export-file-formats-for-sap-crystal-reports-for-vs-2010



来源:https://stackoverflow.com/questions/16806757/display-pdf-and-excel-export-options-in-crystal-reports

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!