Crystal Reports :: Export / Print From Toolbar Just Displays Reportviewer Webpage Again
Jun 10, 2010
I'm having issues using the Print/Export functions from the CrystalReportViewer toolbar in Visual Studio 2005. In some cases, the print/export dialog window is simply replaced with the report page, instead of exporting/printing the data. Based on a dropdown box, the Report Document is loaded with a different report file:
If ddReport.SelectedValue = "Report-1" Then rptDoc1.Load(Server.MapPath("/Reports/Report1.rpt"))Else rptDoc1.Load(Server.MapPath("/Reports/Report2.rpt"))End If
Everythings working fine on my PC but when I deployed my application on server, Print and export are not working. Even the toolbar images were not displaying on the report. So I added them manually to my application.
I am using crystal reports in my web application which came along with visual studio 2008.My problem here is export and print buttons in crviewer are working fine in my local system but when i hosted the app in server actual problem came into picture.Export and print buttons are not working.
I have a problem with Crystal Report, to be exact in correct showing of the toolbar in internet explorer:
1.I can see the toolbar but no icons only X- which means that there is no picture or the action is not active. 2.On the server on which this application stands - we have VS 2010 i CR(4_0_30319) installed 3.In the earlier versions CR was simple because I had catalog: /aspnet_client/System_Web/2_0_50727/I , here all the files and everything else worked correctly 4.and now by VS 2010 and new CR i have /aspnet_client/System_Web/4_0_30319/ and its empty.
I want to adjust the toolbar which are coming when i include the crystal report in web form. It look proper in mozila browser but in IE-8 it is not look well its width is not in proper way it is increase.
The Crystal Report worked fine in the localhost,but when i deployed it,the images disappeared, and instead of this appeared Red X image,and The Print and Export buttons didnt work too Note:i deployed it on the internet Not IIS
I'm using vs2005 asp .net using c#and i using the crystal report viewer to create my report and preview the report using crystal report viewer. When i run the application, i can preview the report well in the form, but when i click any button of th tool bar then a blank page is getting displayed.
I have a crystal report viewer on .aspx page. When the report is loaded, the report shows but toolbar not displaying, no buttons, borders or scrollbars.But with reports which open in new blank,everything's fine..the toolbar, buttons, borders and scrollbars all show perfectly.
My report is displayed without any problem. However, when I click on the button from my crystal report viewer toolbars I get the error. Note : the toolbars is working fine on my local machine.
Error message : Logon failed. Details: mscorlib : Could not find a part of the path 'C:Documents and SettingschiaMy DocumentsVisual Studio 2008WebSitesSafety Permit System ptLoad_ConfineSpace_Summary.xml'. Error in File C:WINDOWSTEMP ptPrintSummaryConfineSpace {965CF937-D48C-483A-AC32-198A790880A6}.rpt: Unable to connect: incorrect log on parameters.
I'm building crystal reoport XI 2 on visual studio 2008 the datasourcse of report is dataset and it works for the first time but when i click on next page button or any other buton on the toolbar the report becomes empty I tried to but the dataset at the page load it doesn't work i tried also to put the reportviewer report source at the page load the report retrive date but at the next button it only give the second page.
I have been using Crystal Reports again after a few years of using SQL Reporting Services so I'm a bit rusty. I have a couple of reports which work ok but dont require the viewer or toolbar. Is it possible to either have a custom print button or to just go straight to printing the reports without going through the viewer first? Also when I print from the toolbar it then saves and displays the report as a pdf instead of printing the report directly, can I change this?
how to show direct print dialog box when click on print button in crystal report? when i click on print button the it goes to pdf file i want to show print dialog box?
to print a crystal report from the server's printer with a button on the web application.Assume that I have a ASP .NET Web Application, When i press the "print" button on the web application, the server which holds the web application prints the specific crystal report with specific data set. Is this possible? How I am going to make this happened?I am sorry to say that I'm very new to all these web programming,
I am working with crystal reports. I created a button on crystal report viewer toolbar using the following code protected void Page_Init(object sender,
EventArgs e) { Control ts = CrystalReportViewer1.Controls[2]; if (ts.ToString().Contains("ViewerToolbar")) { ImageButton BtnExport = new ImageButton(); BtnExport.ID = "BtnExport"; BtnExport.ImageUrl = "images/pdf.png"; BtnExport.Click += BtnExport_Click; ts.Controls.Add(BtnExport); } UpdatePanel UpdatePanel1 = new UpdatePanel (); System.Web.UI PostBackTrigger trigger = new System.Web.UI.PostBackTrigger (); trigger.ControlID = "BtnExport"; UpdatePanel1.Triggers.Add(trigger); }
My problem is whenever I click the button to export the report, it shows an error like below: Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Details: Error parsing near .....
I'm trying to print a crystal report directly to printer, I'm using a server side code PrintToPrinter(1, false, 1, 1) so the report is printed on the default printer of the the server . I need a way to let the report be printed directly to the client's printer . This is my Code
I'm puzzled by this predicament that I'm in right now. I developed a simple application in ASP.NET 2.0 using Visual Studio 2005 and Crystal Reports that came with VS2005. My code works and displays the report correctly with the data on my desktop but when I copy it to the production server to deploy it, everything else runs except for the report which only displays a blank screen.
I've installed Crystal Reports on the server, the IIS setting has the correct ASP.net Framework version. When I view the source on the blank report, it is pointing to the correct path for all the Crystal Reports scripts and images.
I'm trying to print my crystal report without having to display it on my browser by having the user click a button, however, I'm getting the following error:
Error in File C:DOCUME~1HESPIN~1LOCALS~1TempCustomerReceipt {7E65DCC0-46B5-4D06-92FB-5BC201A6AB3F}.rpt: Unable to connect: incorrect log on parameters.
Here's my code (I created the report using the wizard and has a parameter that filters the data in the report):
Protected Sub PrintReceiptButton_Click(ByVal sender As [code]....