cancel
Showing results for 
Search instead for 
Did you mean: 

Freeze after exporting the report from asp.net app to eg Excel

Former Member
0 Kudos

Hi,

When I export a report to eg excel the report can not be used anymore. Clinking on next page does not give a response. Refreshing the page by F5 everything works normal again. A javascipt error occurs. This javascript is generated by CR. I also noticed that an update of CR 13 for Visual Studio 2010 is available. Does this solve this problem or can I solve this issue by changing something myself.

This is the javascript error generated:

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDR; .NET CLR 3.5.21022; .NET4.0C; .NET4.0E; InfoPath.2; SLCC1; InfoPath.3; Tablet PC 2.0)

Timestamp: Fri, 17 Jun 2011 14:45:48 UTC

Message: 'children.length' is null or not an object

Line: 12

Char: 82710

Code: 0

URI: https://access.i-fourc.com/aspnet_client/system_web/2_0_50727/crystalreportviewers13/allInOne.js

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Never heard of this issue, but going to SP1 is the 1st thing to do:

http://www.sdn.sap.com/irj/sdn/crystalreports-dotnet

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Former Member
0 Kudos

Hi,

We installed SP1, but the issue is still not solved.

More information about this issue.

When exporting the report, I can click eg 'goto next page', but the loading indicator keeps visible (Please wait till the document is being processed). I need to press F5 to refresh the page and continue working. This is the case under IE9.

Under IE8 my collegue gets the javascript error as I explained in my first remark on this thread.

former_member183750
Active Contributor
0 Kudos

See if KB [1583090|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533383333333033393330%7D.do] applies.

As fot IE 9 - not supported. See [SAP Crystal Reports, Version for Visual Studio 2010 - Supported Platforms|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e06b8953-a62b-2d10-38b9-ca71f747e2b1?quicklink=index&overridelayout=true]

- Ludek

Former Member
0 Kudos

Hi,

But IE8 also has the javascript problem. So in IE8 it is a problem en probably fixing that, will also fix this for IE9.

Further, IE9 is out for quit some months. When will this be supported? A lot of users are using IE9.

Also Firefox 3.6.10 has the same problem. The screen keeps giving the load message as I mentioned in my previous remark after exporting the report.

Also Google Chrome has this problem. The screen freezes and needs to be refreshed by clicking F5. Version Chrome: 12.0.742.100.

To me it seems a bug, that needs to be fixed soon.

former_member183750
Active Contributor
0 Kudos

I realize the issue may be the same on all browsers. All that means is that if the issue gets resolved on a supported platform (IE8) it may work on the unsupported platforms...

No info re. support of IE 9...

Did you look at KB 1583090?

- Ludek

Former Member
0 Kudos

Hi Ludek,

Can you give me the link to this KB article.

Thanks.

Former Member
0 Kudos

Hi Ludek,

I found the article. It was about moving the code to page_init. This did not resolve our issue.

former_member183750
Active Contributor
0 Kudos

I'd like you to try one of our sample apps. I recommed vbnet_web_simplepreviewreport.zip from here:

https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples

I'm pretty sure that will work. You'll have to figure out the diffs.

- Ludek

Former Member
0 Kudos

Hi Ludek,

To get a correct comparison we need a VS 2010 sample that has been made with the version of CR we have.

Does SAP has such a sample. Seems to me no problem.

Thanks.

former_member183750
Active Contributor
0 Kudos

Why the need for CRVS2010 sample? A simple open of the suggested sample and getting VS2010 to upgrade it for you will give you the same thing(?).

- Ludek

Former Member
0 Kudos

Hi,

First the 2002 sample is not working under vs2010 and second I still think a real VS2010 sample with CR 13 will not get old code into the web solution. To compare it fairly it is best to compare a solution that is made with vs2010.

Answers (2)

Answers (2)

Former Member
0 Kudos

Has there been any update on this problem? I am experiencing something very similar in both my development environment as well as when deployed to the server. After the report is created and displayed I click on the CRViewer toolbar print button. The print dialog displays and I can print normally but after printing the report is unresponsive. It takes a [Ctrl +F5] refresh to bring the application back.

All other buttons, export, refresh, GroupTree all work normally and do not effect the report. It is only the print button that makes the report unresponsive.

I changed the print mode to "ActiveX" in VS2010 and this fixes the problem for most people. Sadly, I need the print to PDf to work since some of our thin clients do not allow ActiveX due to security restrictions.

I am working with the most up-to-date version of CR, I believe that is version 13.0.2000.0 or the 13.0.1.220. My code for creating the report is in the "Page_Init" function.

The only visible error is thrown by IE when the page finishes loading, it says done with errors. The error is "Can't move focus to the control because it is ivisible, not enabled, or of a type that does not accept focus." When I run the application and click the print button on the CRViewer toolbar Fiddler2 shows it launching "application/pdf" but nothing happens after that even after a successful print.

We have been a customer since Crystal Reports 9 and would appreciate help with this issue...

Thank you,

Kaempf

former_member183750
Active Contributor
0 Kudos

Please copy and paste this into a new thread and include info re. web browser used. Also, please include a link to this thread.

- Ludek

former_member292966
Active Contributor
0 Kudos

Hi,

Are you using the export button on the viewer or are you exporting through code?

Is this happening when debugging in Visual Studio or on the Web Server?

I'm running VS2010 and so far it's been fine. If the error is happening on the web server it's possible a component may not be installed or a security issue. The Event Log may give you a clue.

If the error is happening from the export button, at what point does it freeze? Do you see the export settings dialog or does it happen as soon as you press the export button?

Thanks,

Brian

Former Member
0 Kudos

Hi,

I am using the export button in the viewer. Exporting works fine. It is happening when using our webapp that is hosted on the server and from our Visual Studio 2010.

When the data is exported and I click for example on next page in the viewer, the screen freezes/showing the wait cursor or is giving the javascripterror.