Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Object doesn't support this action - Print button fails

I click the Print button (or Export) on the Toolbar and I get the message shown in the subject.

It's a JScript runtime error. I'm using Crystal Reports as shipped with Visual Studio 2008.

The auto generated code line that breaks is:

print = false;crystal_postback="<input type='hidden' name='__EVENTTARGET' value='CrystalReportViewer1'><input type='hidden' name='__EVENTARGUMENT' value='export'><input type='hidden' name='crystal_handler_page' value='/ViewReport.aspx'><input type='hidden' name='__LASTFOCUS' value=''><input type='hidden' name='__VIEWSTATE' value='/wEPDw (etc.)

Additional code on the page is:

<div>

<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />

<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />

<input type="hidden" name="crystal_handler_page" id="crystal_handler_page" value="/ViewReport.aspx" />

<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />

<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE1MTQ2NzcxNTMPZBYCAgEPZBYEAgEPFwQFBHJzSUQFFENyeXN0YWxSZXBvcnRTb3VyY2UxBQNjc3NlBQRCQVNFZAUPUmVwb3J0Vmlld1N0YXRlFwYFCkRlc2lnbk1vZGVoBRJQYWdlUmVxdWVzdENvbnRleHQXBQUJTG9nT25JbmZvFgEXBwUIUGFzc3dvcmQFCHN0YWxsaW9uBQRVc2VyBQJ3YwUGQ3VzdG9taAUSSW50ZWdyYXRlZFNlY3VyaXR5aAUGU2VydmVyBQREVkFQBQRUeXBlAgUFCkF0dHJpYnV0ZXMXBwUSUUVfTG9nb25Qcm9wZXJ0aWVzFwIFFkFETy5ORVQgRGF0YVNldCBPYmplY3QFCTAsNDBCMDAwQwUWSW50ZXJuYWwgQ29ubmVjdGlvbiBJRAUme2UxNDE5MDdlLWY0ZTUtNGIwNC1iZDdkLTVjOGZmMGU3NWViZX0FD1FFX0RhdGFiYXNlVHlwZQUHQURPLk5FVAUIUUVfU1FMREJnBQxEYXRh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cG9ydFZpZXdlcjEkY3RsMDIkY3RsMDYFIENyeXN0YWxSZXBvcnRWaWV3ZXIxJGN0bDAyJGN0bDA3BSBDcnlzdGFsUmVwb3J0Vmlld2VyMSRjdGwwMiRjdGwxMAUgQ3J5c3RhbFJlcG9ydFZpZXdlcjEkY3RsMDIkY3RsMTIFIENyeXN0YWxSZXBvcnRWaWV3ZXIxJGN0bDAyJGN0bDE0" />

</div>

I'm assuming something didn't get installed properly on the server.

Can this be confirmed and, if so, what needs to be reinstalled? Or are there pointers missing? Is something not properly registered?

Everything works fine in the development environment.

tia

Chris

replied

Hi, Chris;

The Crystal Reports toolbar export and print functions for ASP.NET are driven by javascript functions. The error you are receiving is because the javascript files are not present on the server. Carefully check this directory path: u2018aspnet_client\system_web\2_0_50727\CrystalReportWebFormViewer3\JSu2019 You will find the u2018aspnet_clientu2019 directory under the parent website that your virtual directory is in. The u2018CrystalReportWebFormViewer3u2019 directory contains subdirectories for images, html, css, and js. If the server does not have these directories or they are incomplete then copy these files from your local development server to recreate a replica of the directories and the files therein.

Regards,

Jonathan

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question