on 01-30-2017 2:29 PM
var expOptions = new ExportOptions();
ExportOptions rptExportOption;
DiskFileDestinationOptions rptFileDestOption = new DiskFileDestinationOptions();
PdfRtfWordFormatOptions rptFormatOption = new PdfRtfWordFormatOptions();
rptFileDestOption.DiskFileName = str_FolderPath;
rptExportOption = ExportCarePlusComprehensive(dt, rptFileDestOption, rptFormatOption);
private static ExportOptions ExportCarePlusComprehensive(DataTable dt, DiskFileDestinationOptions rptFileDestOption, PdfRtfWordFormatOptions rptFormatOption)
{
ExportOptions rptExportOption;
GroupedComprehensiveReport rpt = new GroupedComprehensiveReport();
rpt.SetDataSource(dt);
rptExportOption = rpt.ExportOptions;
{
rptExportOption.ExportDestinationType = ExportDestinationType.DiskFile;
rptExportOption.ExportFormatType = ExportFormatType.Text;
rptExportOption.ExportDestinationOptions = rptFileDestOption;
rptExportOption.ExportFormatOptions = rptFormatOption;
}
rpt.Export();
return rptExportOption;
}
Error :
Method not found: 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag CrystalDecisions.ReportAppServer.ReportDefModel.ISCRExportOptions.get_ExportOptionsEx()
Odd error, you are using the Engine but the error is using RAS:
You need to do more debugging and use one or the other...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why don't you use ExportToDisk method?
I do call that and works fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried in SP19 as well.
Same Error getting. Can you help me in this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As I said already, we don't patch SP's, download SP 19 and try again.
If it doesn't work then we can look into it.
Also, if there are no export options saved in the RPT file then an exception is thrown, just ignore it in a Try/Catch.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same code above which i mentioned is working fine in 13.0.9 version.
After upgrading to 13.0.15 getting exception message like method not found.
,Same code worked fine in 13.0.9. But in 13.0.15 throwing error (Method not found)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Upgrade to SP 19:
https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads
We do not fix previous versions, if still a problem need more info
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.