crystal-reports-2008

How to add chart in page header of crystal reports

社会主义新天地 提交于 2019-12-13 14:09:42
问题 I tried to add a chart in page header of crystal reports but it adds only in report header and report footer only. How to add chart in page header? 回答1: You can't have a chart in the page header, or detail sections; a chart will only function in the report header or footer. If you require a chart in the page header, create a subreport in the page header, and place the chart within the subreport. 来源: https://stackoverflow.com/questions/12640969/how-to-add-chart-in-page-header-of-crystal

How to generate a Crystal Report from a list of parameters

人盡茶涼 提交于 2019-12-13 04:48:16
问题 My requirement is to generate a employee details report of multiple employees.Parameters for query will be employee number and a date range. This is the record selection formula i'm using {EMP_LEAVE_REPORT_VIEW.LEAVE_START_DATE} in {?sDate} to {?eDate} and ( Stringvar Array strings := Split({?empNoList}, "_"); Numbervar Array numbers; Redim numbers[Ubound(strings)]; Numbervar i; for i := 1 to Ubound(strings) do ( numbers[i] := ToNumber(strings[i]); if {EMP_LEAVE_REPORT_VIEW.EMP_NO} = numbers

Crystal Report: Is PreviousNull prints incorrect data

微笑、不失礼 提交于 2019-12-13 03:37:59
问题 Some days back i posted a question in SO at Crystal Report: Display 0.00 for duplicate values The question was to remove duplicate values and the report should display 0.00 instead. It was very kind of @adatapost that he posted a solution. Now,it is throwing very irritating and awkward problem. The 7th record is showing up 0.00 Hence, if the record was like before as 400.00 400.00 400.00 500.00 500.00 500.00 600.00 600.00 600.00 After that formula applied is showing something like 400.00 0.00

The result of selection formula must be a boolean in Crystal Report

独自空忆成欢 提交于 2019-12-13 02:11:49
问题 I want to convert string to datetime in crystal report, I used Date(YYYY,MM,DD) and CDate(YYYY,MM,DD) like a tip but have error: The result of selection formula must be a boolean. stringVar dt := {Control_pmt_tlmytvResult.ngaydk}; Date (Val (dt[1 to 4]),Val(dt[5 to 6]) ,Val(dt[7 to 8])) Control_pmt_tlmytvResult is formatted string: YYYY-MM-DD HH:mm:ss 回答1: You're attempting to return a date in a selection formula (Whether it is a Record, Group, or Saved Data selection formula) and CR doesn't

Which days are work days in a given date range

风格不统一 提交于 2019-12-13 01:17:39
问题 Is there a built in function that will tell me which days are work days? this is what i mean, If I were to choose today's date (6/14/2011), it will give me any inspection numbers clocked out today. This lead time includes weekends. So if I had a customer start a project on the 10th (Friday) and finish it today; it would show it took about five days, instead of three. 回答1: I believe there used to be a function to do this a long long time ago, but I believe that function has since been removed.

Make Stored Procedure parameters cascading in Crystal Reports

戏子无情 提交于 2019-12-13 01:12:00
问题 I don't have a lot of experience using Stored Procedure as a data source for Crystal Reports. My question is that when you connect to an Oracle Stored procedure which has 2 parameters - Country and City, the parameters are already mapped in Crystal individually. Is there a way i can make these parameters cascading i.e. Country > City, either on front end or backend 回答1: After you add a stored procedure to the report, you should see the two parameters listed in the Parameter Fields section in

Remove the Alphabet in Crystal Report

落爺英雄遲暮 提交于 2019-12-12 21:46:13
问题 Hi I'm new in Crystal Reports, I'm using Crystal Reports 2008 and I would like to know if how can I remove the alphabet characters in string and only the numbers will remain. Is there function for this? example: Point 231 / Point 323 / USP 342 output: 231 / 323 / 342 Thanks, Captain16 回答1: Use the following formula stringvar str; stringvar str1; numbervar counter; numbervar leng; leng := len({Your_Field}); if leng>0 then ( for counter := 1 to leng do ( If (Mid({Your_Field}, counter, 1)) in "a

My Crystal Report is not getting refreshed while passing parameter?

北慕城南 提交于 2019-12-12 13:28:38
问题 I have created my Crystal Reports using SQL query in Crystal Reports itself, by passing two parameters, i.e, say for eg:- Month & Year. While I preview the report, I can able to navigate through all pages by passing different parameters and its working fine, but while viewing the report through browser I can't able to view the current report instead is loads the previously generated report, but while I manually make refresh the crystal page in toolbar I can see the current report, even I can

Crystal Report: How can I use a list of parameter items as a group?

拜拜、爱过 提交于 2019-12-12 05:27:16
问题 Background I have a Crystal Report. For multiple items entered into a parameter (which I believe becomes a string array), I would like it to group by those values and then run a number of sub-reports for each group item. Goal For items entered as part of a parameter (which allows multiple items), use those items as a group so that I can see multiple sub-reports for those items (including if no data can be found for a given item). To clarify, the desired process is: User runs the report User

How to set database login infos (connection info) for crystal report vb.net?

断了今生、忘了曾经 提交于 2019-12-12 02:14:41
问题 I am having a little problem getting Crystal Reports to set the logon. I have it working in a number of reports but a couple for some reason have stopped working. Attached is my logon script, I have stepped through it and the logon info is all there after every step. What is even more unusual is that the report in visual studio will open with information OK Private Sub cmdPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdPrint.Click Dim cryRpt As New