Quantcast
Channel: SCN : Popular Discussions - SAP Crystal Reports, version for Eclipse
Viewing all articles
Browse latest Browse all 893

js error upon clicking print icon following upgrade to Crystal IX R2 spk2

$
0
0

Post Author: asitterly

 

CA Forum: JAVA

 

I installed CRix R2 spk2 and copied the new jars ect. into my web project. Now I get a javascript error when attempting to export the report from the CrystalReportViewer.jsp using either the print or save icons at the top. All other report functionality is working correctly.

Neither printer dialog box or the printing status popout window is displayed.

Below is the  js error that is displayed as well as the code it is pointing to in the CrystalReportVeiwer.jsp:

crv_createCookie is not defined

The method referenced by error is in bold below

 

 

 

 

function CrystalViewerCrystalEvent(eventTarget, eventArgument) {if(eventArgument == 'tb=exportdlg' || eventArgument == 'tb=printdlg' || eventArgument == 'tb=crprint' || eventArgument == 'tb=exprecdlg'){ crv_createCookie('CrystalViewershowDialog','true')} var theform = document.getElementById('CrystalViewerCrystalForm'); theform.CrystalEventTarget.value = encodeURIComponent( eventTarget ); theform.CrystalEventArgument.value = encodeURIComponent( eventArgument ); if (theform.CrystalCompositeViewState.value == "") {  newState = "";  newTreeWidths = "";  var formCount = document.forms.length;  for (var i = 0; i < formCount; i++)  {   var formName = new String(document.forms&#91;i&#93;.name);   if(formName.indexOf("CrystalForm") != -1)   {

    var viewerName = formName.substring(0, formName.indexOf("CrystalForm"));    newState = newState + formName + "="+ document.forms&#91;i&#93;.CrystalViewState.value + ";";    document.forms&#91;i&#93;.CrystalViewState.value = "";

    var treeWidthInput =  document.getElementById(viewerName + "CrystalResizedTreeWidth");    if (treeWidthInput)    {     newTreeWidths = newTreeWidths + viewerName + "=" + treeWidthInput.value + ";";    }   }

  }  theform.CrystalCompositeViewState.value = encodeURIComponent( newState );

  theform.CrystalCompositeResizedTreeWidth.value = encodeURIComponent( newTreeWidths );

} theform.submit();}

Any ideas!!

This is urgent issue -- Thanks in advance!


Viewing all articles
Browse latest Browse all 893

Trending Articles