crystal-reports

How to show month name in crystal report chart?

£可爱£侵袭症+ 提交于 2019-12-23 20:50:24
问题 I am using Crystal Report 2008, in Line Chart I want to show month name like Jan Feb March on x-Axes in report. How do I show months on x-Axes? 回答1: The best way to do this is create a separate formula field with the following formula cstr(monthname(month({YourDateFieldHere}))) Use this in your chart. This simply pulls the month from the date here. If you require to change this any, I'm sure you can change the format by right clicking, or alternatively if it shows up 01, 02, 03 ect.. you

Group by two fields in Crystal Reports

亡梦爱人 提交于 2019-12-23 20:14:38
问题 How can I group by two different fields in a Crystal Report? Foe example : val1|val2|val3|val6 val1|val12|val3|val7 val11|val2|val3|val8 val11|val12|val3|val9 I want the report to look like val1 : ======= val2 ---- val3|val6 val12 ------- val3|val7 val11 : ========= val2 ----- val3|val8 val12 : ------ val3|val9 回答1: The generic data provided is rather vague, so I will provide my own to demonstrate (with field names on the first line) "EmployeeName","WeekNumber","DayOfWeek","HoursWorked" "John

crystal report integration issue on setup and deployment

无人久伴 提交于 2019-12-23 20:12:52
问题 I have a application with lot of reports using crystal reports.Now I want to setup and deploy my Project using visual studio setup wizard.But my problem is I want to install the application on another computer which has not installed the crystal report.The application run perfectly until it reaches the report part,it throw an error 'The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' throw an exception'. How do I reference crystal report dependencies on my setup

Visual Studio Crashes when using Crystal Reports Group Editor

*爱你&永不变心* 提交于 2019-12-23 17:24:39
问题 I have a crystal report in my Visual Studio 2008 ASP.NET project, and when I choose "Group Expert" from the Crystal Reports -> Report menu, Visual Studio crashes / hangs and I have to use Task Manager to close the program. This happens no matter how many times I try, and oddly enough it seems to work fine on another computer with the same project. Any help at all in the right direction would be greatly appreciated as I am pulling my hair out trying to figure this out. I am using Visual Studio

How to generate product receipt in winform application?

一笑奈何 提交于 2019-12-23 15:24:07
问题 I am working on a winform application for the first time and I have a gridview which contains a list of products users have bought. I have a Print button on click which allows the user to generate a receipt like the one below: So here I am confused whether I should use "winform default RDLC or Crystal Report" or whether I should generate PDF and then let it print out as receipt, but I am not sure if PDF is a good option for receipt generation or not. For Crystal Report, I have read that I

Crystal Reports images not visible in web viewer

时光总嘲笑我的痴心妄想 提交于 2019-12-23 15:01:24
问题 I have some Crystal Reports (V10) in an application (.NET 1.1) I inherited that is deployed in four "identical" environments. In three of the environments, they are working fine. In the fourth, the chart graphics are not visible in the web viewer. They are visible if you export the reports. The IT guys swear everything is exactly the same in all four environments and have kicked the problem back to me to solve. I'm not sure how I'm going to do that since I can't get to the servers to check

Loading Crystal Report from embedded resource

时光怂恿深爱的人放手 提交于 2019-12-23 14:58:52
问题 I have an ASP.NET website and a referenced class library project. In this class library I have a Crystal Report set as embedded resource. I want to load the report dynamically into a CrystalReportViewer. How do I do it? 回答1: I figured out how to solve that problem. When a Crystal Report is added to a Class Library project, it creates a corresponding class, which inherits from ReportClass. An instance of this class can be used as ReportSource of the viewer. Example: var report = new

Suppress Nonadjacent Duplicates in Report

 ̄綄美尐妖づ 提交于 2019-12-23 12:58:29
问题 Medical records in my Crystal Report are sorted in this order: ... Group 1: Score [Level of Risk] Group 2: Patient Name ... Because patients are sorted by Score before Name , the report pulls in multiple entries per patient with varying scores - and since duplicate entries are not always adjacent, I can't use Previous or Next to suppress them. To fix this, I'd like to only display the latest entry for each patient based on the Assessment Date field - while maintaining the above order. I'm

Crystal Reports / IIS - Runtime Error

雨燕双飞 提交于 2019-12-23 12:45:18
问题 I have an asp.NET 4.0 Web Application which is Hosted on IIS 7.5 (Windows Server 2008 R2). The server has the following packages installed for Crystal Reports: SAP Crystal Reports, version for Visual Studio 2010 - Standard SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit) I am using Visual Studio 2010 for Publishing, and should have all the necessary .dll files. I have this error: An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal

Crystal Reports - Hiding a text and drawing object based on data

戏子无情 提交于 2019-12-23 10:18:10
问题 I have a text and drawing on a Crystal Report which I would like to hide if the data field "IsVisible" is set to 1. Is there an easy way to do this? 回答1: You can either conditionally suppress the entire section that the fields/text/picture is on by going to 'Section Expert' -> select the section you want -> click the formula button next to 'Suppress (No Drill-Down)' and enter {field.IsVisible}<>1 , or you can selectively only suppress the fields/text/pictures in question by right-clicking