Crystal Reports :: Toolbar Not Working - Incorrect Log On Parameters?
Dec 17, 2010
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 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 already generated crystal reports but i've made them static. but now i want to make the user to select the criteria for generating the reports. for eg., in one of them i want to show monthwise data so user should be able to select the month and year and that would be passed as parameter and compared to the existing data. provide me with proper exact code that can be used for giving parameters in such a report using C#.
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 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.
We have migrate from VS2005 to VS2010. CR2010 installed too.
We have 1 website and class project in one solution.
The assembly of web.config has point to new version of CR ver13 and also checked that the references is ver13 too.
WEB CONFIG:
[code]....
However in code behind, when "Go To Definition" the imported CrystalDesicions Namespace, it go to CR version10 location.
The class project has references to correct ver13.
In the end we get error of :
Error 17 The project currently contains references to more than one version of CrystalDecisions.CrystalReports.Engine, a direct reference to version 10.2.3600.0 and an indirect reference (through 'Web_cl.clsAccountRpt.GetAccountStatementSummaryRptDoc') to version 13.0.2000.0. Change the direct reference to use version 13.0.2000.0 (or higher) of CrystalDecisions.CrystalReports.Engine. D:ProjectWebGlobal 4.0Web_developCpAdminReportFormAccountReportModule.aspx.vb 40 28 D:...Web_develop
The function in class has return ReportObject back to the website, because of the website reference did not really point to new version has causes this error. I have checked all references in web.config and project properties all is point to new version, but in program it seems still point to old one.
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?
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
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 have a crystal report using store procedure with DSN Name: 192.168.0.3. when I keep the connection to this server it's OK
But when i change the logon info and disconnect to the server to connect to My PC it appear the error : "Unable to connect: Incorrect log on parameter"
I have master page, menu on master page, i use asp roles and trim menu item based on user roles and rights this process is working fine.
Now i have to create some reports based on user roles, and responsibility in a company like country head will view country wide reports, manager region will only view regional report and rest will view reports related to them.
How can i achieve this efficiently using asp roles.
After some internet sifting i found how to create a crystal report using the disconnected model and learnt how to pass parameters to it.
In my report am suplying a range of dates to select data inside the range; when the report only has one page (or the first of a multi paged) everything works like a charm. The problem is when i naviagate the report using the default toolbar buttons on the crystalreportviewer, the report asks for the very same parameters ive set in code behind.
I was using queystring parameters to pass the parameters (i have a page where you pick the report types and another which has the reportviewer and displays the reports previously selected)
and i thought that they got lost because when you click next/previous there is a postback...switched to session variables and it is still the same.
1: How can i solve this?
2: Is there a way to cache all the report so that navigation doesnt require database access?
3: How can i open the reports without any browser controls /toolbars?
I am trying to use crystal report for my project. I have made .rpt file as instructions in the tutorials now the problem is with crystal report viewer control... i hav set its its report source to the one that i have made using its properties.. but still its not working..I am using professional edition of visual studio 2008 with .net frameowrk 3.5
I have created a crystal report application using VS 2005 on my Dev machine, it worked correctly.On another machine where VS 2005 is also installed, it is not working.
When i run the application locally it works fine but when i publish it n access from it it gives the error asEither the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
I'm passing some parameters to a CR report programatically and it was working fine, but now that I have added a new date parameter to the report, for some reason, it is prompting me to enter that parameter on screen (the user isn't allowed to set that parameter is the system who must set it.), I haven't changed a thing other than adding the new date parameter, and all the other parameters behave normal, just the date parameter is prompted even thought I've already set a value for the parameter.
Just for the sake of things: I have checked that the parameter is indeed a date and that it is well formed. CR prompts me to enter it in the format (mm/dd/yyyy hh:mm:ss) so I pass date in that exact format (In fact I've even tried hard coding a well-formed date and it still prompts me to enter the date).
I am trying to find a way that would allow me to display the parameters that have been selected when there are no records found
For instance.
Pulling from a database with a employee table that contains name, address, city, state, zip, job titile and shift.
i then have two list boxes set up that collect the paramets for the reports. One for the job title and one for the shift.
i want to be able to say that no records are found for "managers" on "third shift" where managers and third shift are the parameters from the listboxes.