2527230 - Searching RPTR reports will only search the current page and generates and error

SAP Knowledge Base Articles - public

2527230 - Searching RPTR reports will only search the current page and generates and error


In a simple Cortez app export a report to RPTR format:

private void ExportToRPTR_Click(object sender, EventArgs e)


CrystalDecisions.Shared.DiskFileDestinationOptions diskOpts = CrystalDecisions.Shared.ExportOptions.CreateDiskFileDestinationOptions(); CrystalDecisions.Shared.ExportOptions exportOpts = new CrystalDecisions.Shared.ExportOptions();

rptClientDoc = new ReportClientDocument(); exportOpts.ExportDestinationOptions = diskOpts; string outputFileName = "";

string MyRptName = rpt.FileName.ToString(); outputFileName = MyRptName.Substring(9, rpt.FileName.Length - 9);

outputFileName = outputFileName.Substring(0, (outputFileName.Length - 4)) + ".rptr";



if (File.Exists(outputFileName))

{ File.Delete(outputFileName);



{ diskOpts.DiskFileName = outputFileName; exportOpts.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile; exportOpts.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.RPTR;


MessageBox.Show("Export to RPTR Complete - Saved as " + outputFileName, "RAS", MessageBoxButtons.OK, MessageBoxIcon.Information);

rpt.ExportToDisk(ExportFormatType.RPTR, outputFileName);


catch (Exception ex)


btnSQLStatement.Text = "ERROR: " + ex.Message;



} catch (Exception ex)

{ btnSQLStatement.Text = "ERROR: " + ex.Message; //return;



Now open the saved report in a viewer and search on any text that is on multiple pages or any text that is not on the page.

An error is generated if the text is not found or the end of page has been reached


Crystal Reports for Visual Studio


This issue has been escalated to R&D for a solution and set for SP 22


CR for VS, .NET, Invalid operation of Crystal reports- report (read-only RPTR). See release notes for more information. , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem


SAP Crystal Reports, developer version for Microsoft Visual Studio