Several modules I developed make use of the crystal reports viewer control and they used to work fine in all browsers up to DNN 4.3 but after updating to 4.6.x and now to 4.8 the modules throw a client side error in IE. The report works
fine until you click the print button on the report viewer tool bar. In Fire Fox it works fine but in IE instead of the export pop up dialog the browser throws an unterminated string constant error. After examining the offending source it seems
the report viewer injects this java script :
<SCRIPT>
<!--
print = true;crystal_postback="<input type='hidden' name='__EVENTTARGET' value='dnn:ctr500:PrintTimeReport:CrystalReportViewer1'><input type='hidden' name='__EVENTARGUMENT' value='export'><input type='hidden' name='crystal_handler_page' value='/GriffinWeb/Default.aspx?TabId=146&ctl=PrintTimeReport&mid=500&scope=weeklyreport&fromdate=39622&todate=39628'><input type='hidden' name='__LASTFOCUS' value=''><input type='hidden' name='__v13wstat3' value='/wEPDwUJMjgzMDU3ODk3D2QWBmYPFgIeBFRleHQFPjwhRE9DVFlQRSBIVE1MIFBVQkxJQyAiLS8vVzNDLy9EVEQgSFRNTCA0LjAgVHJhbnNpdGlvbmFsLy9FTiI+ZAIBD2QWDAIBDxYCHgdWaXNpYmxlaGQCAg8WAh4HY29udGVudAUaR3JpZmZpbiBBdXRvbWF0aW9uIFdlYnNpdGVkAgMPFgIfAgUxQXV0b21hdGVkIE1hY2hpbmVyeSxSb2JvdGljIFdlbGRpbmcsTGFzZXIgV2VsZGluZ2QCBA8WAh8CBSlDb3B5cmlnaHQgMjAwOCBieSBHcmlmZmluIEF1dG9tYXRpb24gSW5jLmQCBQ8WBB8CZB8BaGQCBg8WAh8CBRdHcmlmZmluIEF1dG9tYXRpb24gSW5jLmQCAg9kFgICAQ9kFgICBA9kFgJmD2QWEgIBD2QWAmYPZBYGAgMPEGRkFgECAWQCCQ9kFgJmDw8WBh4ISW1hZ2VVcmwFHS9HcmlmZmluV2ViL2ltYWdlcy9leHBhbmQuZ2lmHg1BbHRlcm5hdGVUZXh0BQhNYXhpbWl6ZR4HVG9vbFRpcAUITWF4aW1pemUWCh4HdXNlcmN0cgUJVXNhYmlsaXR5Hgd1c2V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IxOl9jdGwyOl9jdGw1BTtkbm46Y3RyNTAwOlByaW50VGltZVJlcG9ydDpDcnlzdGFsUmVwb3J0Vmlld2VyMTpfY3RsMjpfY3RsNgU7ZG5uOmN0cjUwMDpQcmludFRpbWVSZXBvcnQ6Q3J5c3RhbFJlcG9ydFZpZXdlcjE6X2N0bDI6X2N0bDcFPGRubjpjdHI1MDA6UHJpbnRUaW1lUmVwb3J0OkNyeXN0YWxSZXBvcnRWaWV3ZXIxOl9jdGwyOl9jdGwxMAU8ZG5uOmN0cjUwMDpQcmludFRpbWVSZXBvcnQ6Q3J5c3RhbFJlcG9ydFZpZXdlcjE6X2N0bDI6X2N0bDEyBTxkbm46Y3RyNTAwOlByaW50VGltZVJlcG9ydDpDcnlzdGFsUmVwb3J0Vmlld2VyMTpfY3RsMjpfY3RsMTQdzocGTfg81CgcSXPl2fTAKVHX1A=='><input type='hidden' name='dnn:IconBar.ascx:optMode' value='EDIT'><input type='hidden' name='dnn:IconBar.ascx:optModuleType' value='0'><input type='hidden' name='dnn:IconBar.ascx:cboDesktopModules' value='-1'><input type='hidden' name='dnn:IconBar.ascx:cboPanes' value='ContentPane'><input type='hidden' name='dnn:IconBar.ascx:txtTitle' value=''><input type='hidden' name='dnn:IconBar.ascx:cboPosition' value='-1'><input type='hidden' name='dnn:IconBar.ascx:cboPermission' value='0'><input type='hidden' name='dnn:IconBar.ascx:cboAlign' value='left'><input type='hidden' name='dnn:dnnSEARCH:Search' value='optSite'><input type='hidden' name='dnn:dnnSEARCH:txtSearch' value=''><input type='hidden' name='dnn:ctr500:PrintTimeReport:CrystalReportViewer1:_ctl2:_ctl9' value=''><input type='hidden' name='dnn:ctr500:PrintTimeReport:CrystalReportViewer1:_ctl2:_ctl11' value='AAEAAAD/////AQAAAAAAAAAEAQAAABxTeXN0ZW0uQ29sbGVjdGlvb
nMuSGFzaHRhYmxlBwAAAApMb2FkRmFjdG9yB1ZlcnNpb24IQ29tcGFyZXIQSGFzaENvZGVQcm92aWRlcg
hIYXNoU2l6ZQRLZXlzBlZhbHVlcwAAAwMABQULCBxTeXN0ZW0uQ29sbGVjdGlvbnMuSUNvbXBhcmVyJFN5c3RlbS5Db2xsZW
N0aW9ucy5JSGFzaENvZGVQcm92aWRlcgjsUTg/AwAAAAoKCwAAAAkCAAAACQMAAAAQAgAAAAMAAAAGBAAAAApQYWdlTnVtYmVyBgUAAAA
OTGFzdFBhZ2VOdW1iZXIGBgAAABVJc0xhc3RQYWdlTnVtYmVyS25vd24QAwAAAAMAAAAICAEAAAAICAEAAAAIAQEL'><input type='hidden' name='dnn:ctr500:PrintTimeReport:CrystalReportViewer1:_ctl2:_ctl13' value=''><input type='hidden' name='dnn:ctr500:PrintTimeReport:CrystalReportViewer1:_ctl2:_ctl15' value='100'><input type='hidden' name='ScrollTop' value='0'><input type='hidden' name='__dnnVariable' value='dnn_ctr500_dnnACTIONS_ctldnnACTIONS_xml<root id=dnn_ctr500_dnnACTIONS_ctldnnACTIONS><n id=2 key=2 txt= enabled=0 hasNodes=1 cssIcon= iIdx=0/></root>
__dnn_pageload__dnn_setScrollTop();'>";
rpt=true;
pdf=true;
word=true;
xls=true;
;recXls=true;
;rtf=true;
window.open("/aspnet_client/System_Web/2_0_50727/CrystalReportWebformViewer4/html/crystalexportdialog.htm", "", "dependent,menubar,height=450,resizable,width=600");
-->
</SCRIPT>
in the above script I have highlighted the offending part of the unterminated string. In fireFox the page source looks identical except for the last part [ __dnn_pageload__dnn_setScrollTop(); ] is not present it ends like this : root>'>";
So my question for the core team is: Why is that extra stuff appended to the __dnnVariable for IE and what can I do to fix it. This has been an on going issue and I have subbmitted it to Crystal Reports tech support but they claim its an
issue with DNN. Any help would be greatly appreciated.