Skip to Content
0
Former Member
Jun 23, 2011 at 12:10 PM

Crystal Report Printing Error.

839 Views

Hello!

I'am using Crystal Reports for VS2010.

I host it on my own server.

I can not print report using my web application.

The reason is invalid url in script which is generated by Crystal Report Viewer .NET WebControl.

Client script which is generated by Crystal Report Viewer .NET WebControl:

bobj.crv.writeWidget({'cons':'bobj.crv.newViewer','args':{'id':'objCtrlCrystalReportViewer__UI','isDisplayModalBG':false,'visualStyle':{'className':'caBody','width':'1104px','height':'1202px'},'layoutType':'fitReport'},'children':[{'cons':'bobj.crv.newPrintUI','args':{'isActxPrinting':true,'codeBase':'../aspnet_client/system_web/4_0_30319/crystalreportviewers13/ActiveXControls/PrintControl.cab','url':'../MyWebApp/(S(43ldi5m4vt33atpiitubd1hd))/ToRunReport.aspx','paperOrientation':1,'paperSize':1,'paperWidth':0,'paperLength':0,'driverName':'Microsoft XPS Document Writer','useDefPrinter':false ...

The reason is in invalid path to original aspx page "../MyWebApp/(S(43ldi5m4vt33atpiitubd1hd))/ToRunReport.aspx"

It should be "../../MyWebApp/(S(43ldi5m4vt33atpiitubd1hd))/ToRunReport.aspx".

Are there any limitations for Crystal Reports .NET Runtime for VS 2010 working with ASP .NET web applications which saves session ID in URL?