Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print/Export button stopped working:

Status
Not open for further replies.

NJChris

Technical User
Jul 11, 2005
6
US
Crystal Reports 10 - Report Application Server - CrystalReportsViewer.asp

The problem appears to be in the dynamically created java script... java script doen not support the dash in "CR_hdl_-2051178031"

I assume this is a random number that should not ever be negative... tried installing hot fixes and SP 6


-------------code-------------------

<script language="javascript">
<!--
var CR_hdl_-2051178031 = new Array();
var CR_oldOnunload_-2051178031 = window.onunload;
function CR_doOnunload_-2051178031() {
if (CR_hdl_-2051178031 && CR_hdl_-2051178031.constructor == Array) {
var popupCount = CR_hdl_-2051178031.length;
for (var i = 0; i < popupCount; i++)
{
var popupWindow = CR_hdl_-2051178031;
if (popupWindow && !popupWindow.closed && popupWindow.checkForCRViewerExportWindowExistence)
{
popupWindow.close();
}
}
if(CR_oldOnunload_-2051178031) {
CR_oldOnunload_-2051178031.apply(this, arguments);
}
}
}
function doExport(type) {
var url = "/student/reports_asp/CrystalReportsViewer.asp?CrystalEventTarget=CrystalReportsViewer&tb=" + type + "&insubrpt=false";
var popupWindow = window.open(url, '', 'height=400,menubar,resizable,status,width=600');

if (CR_hdl_-2051178031 && CR_hdl_-2051178031.constructor == Array)
{
CR_hdl_-2051178031.push(popupWindow);
}
popupWindow.focus();
}
window.onunload = CR_doOnunload_-2051178031;
// -->
</script>

------------------end code----------------------


</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top