cancel
Showing results for 
Search instead for 
Did you mean: 

After upgrading Crystal report from 13.0.9 to 13.0.15 Export to PDF is not working

Former Member
0 Kudos

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()

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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...

Answers (5)

Answers (5)

alebros
Discoverer
0 Kudos

Why don't you use ExportToDisk method?

I do call that and works fine.

Former Member
0 Kudos

I tried in SP19 as well.

Same Error getting. Can you help me in this.

0 Kudos

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

Former Member
0 Kudos

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)

0 Kudos

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