SAP Knowledge Base Article - Public

2031605 - Long Hyper link In subreport crashes .NET application, no error in Crystal Reports Designer

Symptom

Long Hyper link In subreport crashes .NET application. No error in CR Designer.

Environment

Crystal Reports for Visual Studio .NET

Reproducing the Issue

Open attached report in .NET app.

Get either the subreport collection or the Parameter collection and the app will close with an exception.

Found it's this OnDemand subreport causing the problem:
srINDIC198Drill.rpt

And if you remove the hyper link: INDIC039-Average resolution Time

No crash.

The link is:
http://itcs.dnet.domtar/teams/itsm/reports/EVReport/Lists/Requested%20%
20In%20development/DispForm.aspx?ID=578&Source=http%3A%2F%2Fitcs%2Ednet%2Edomtar%2Fteams%2Fitsm%2Freports%2FEVReport%2FLists%2FRequested%2520%
2520In%2520development%2FListView%2Easpx%3FSortField%3DReport%255Fx0020%255FID%26SortDir%3DAsc%26View%3D%257B95C40578%252DEAAB%252D448D%252DB572%252D779DF699366C%257D%26FilterField1%3DReport%255Fx0020%255FID%26FilterValue1%3DINDIC039

Changing the link to http://google.com and it works

Issue is CR .NET should not be closing the application, we should be handling the exception cleanly and popping up a warning the URL is too long.

Code to get the subreport collection:
case "SubReports":
btnReportObjects.Text = "";
flcnt = 0;
foreach (String resultField in rptClientDoc.SubreportController.GetSubreportNames())
{
SubreportController subreportController = rptClientDoc.SubreportController;
SubreportClientDocument subreportClinetDocument = subreportController.GetSubreport(resultField);
if (subreportClinetDocument.IsImported)
{
textBox1 = "Imported: " + subreportClinetDocument.SubreportLocation.ToString();
btnReportObjects.Text += textBox1;
btnReportObjects.AppendText(" 'End' \n");
++flcnt;
btnCount.Text = flcnt.ToString();
}
else
{
textBox1 = "embedded: " + " " + resultField.ToString();
btnReportObjects.Text += textBox1;
btnReportObjects.AppendText(" 'End' \n");
++flcnt;
btnCount.Text = flcnt.ToString();
}
}
break;

Cause

This issue has been tracked under problem report ADAPT01714638

Resolution

This issue has been resolved in:

  • SAP BusinessObjects Business Intelligence Platfrom 4.0 SP10
  • SAP BusinessObjects Business Intelligence Platform 4.1 SP04

Keywords

SP04, SP10, ADAPT01714638, ADAPT01714639 , ADAPT01717282, ADAPT01717283, long hyperlink, subreport, .net, crystal reports designer, crashes .net application, .net , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio

Attachments

DomtarReport1-08-016.rpt
QATest.7z