crystal-reports

Is it possible to programmatically iterate through a table within a formula in crystal reports?

假如想象 提交于 2019-12-24 08:47:45
问题 Is it possible to programmatically iterate through a table within a formula in crystal reports? E.G. If I have a master table and a detail table can I iterate through the detail table e.g. ( psuedo code ) local numberVar Total := 0 While not EOF() IF Type = "+" Total = Total + Quantity ELSE IF Type = "-" Total = Total - Quantity ENDIF <Next Record> End While 回答1: It is possible to use loops in a formula field to get the data that you need, but I have only really used them in complex string

Hide Header Section After Last Record

时光毁灭记忆、已成空白 提交于 2019-12-24 08:28:13
问题 I have a crystal report, whenever I reach the last record, it will print another extra page together with the header. see the attachment below: this is extra page, always appear together with the header section after last record I applied formula to the Detail Section and Header Section at the supress. Detail Section: WhilePrintingRecords; Global BooleanVar finished; finished := OnLastRecord Header Section: Global BooleanVar finished It seems working for the layout, but when the extra page is

How to tell when a Crystal Report has loaded

橙三吉。 提交于 2019-12-24 08:16:33
问题 I am building a Winforms C# application that uses Crystal Reports. I am loading a dummy report so that the Crystal Reports components are loaded when the user opens a Report. I do this because it takes a lot of time to load the report the first time. I open a minimized, 0% opacity form containing the dummy report from a backgroundworker. I need to know when the report has loaded completely, so that I know when to close the form. I didn't manage to find an answer on-line, so my question is:

Crystal Report Error. Failed to open the connection

我的梦境 提交于 2019-12-24 08:05:03
问题 I have issue in Crystal Report. I have MySQL database on one server and asp.net C# website on other server. My website shows some reports well but other reports shows following error. All Crystal Reports work well on localhost. Error: Failed to open the connection. Failed to open the connection. ADP_ReportSR1 253736_80084_{B18FB39E-5489-4D73-ACAE-50ACE7A17E83}.rpt 回答1: Check datasource referenced in the report. Look at Solution: Failed to Open the Connection The computer has to be configured

Crystal Report Login fail for access

蹲街弑〆低调 提交于 2019-12-24 07:27:26
问题 PROBLEM: I see login Info window when loading report. Tried alot. Read many forums but no success. Below is the code. I am using latest Crystal Report in VS2010. Windows forms. I am using access db 2010 with password only. I am not sure what to use username and I never mentioned in access. My CrystalReportViewer is attached to DataSet which is ReportingDS.xsd . Please help. private static string StrCon = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + Application.ExecutablePath.ToString()

Conditional printing depending of empty or null value in Crystal Reports

会有一股神秘感。 提交于 2019-12-24 06:48:37
问题 Suppose I have an StoredProcedure that returns a unique row corresponding to a table with columns "Name" and "Surname". I want the report to show: Name: NameField Surname: SurnameField Where the "NameField" and "SurnameField" are the fields returned by the StoredProcedure. The special requirement, is that if "SurnameField" is empty or null, then I don't want to show the "Surname: SurnameField". How can I achieve this? The only thing that I thought is breaking the storedprocedure in two, one

How can I use strongly typed lists as the datasoruce for a Crystal Reports

删除回忆录丶 提交于 2019-12-24 06:16:07
问题 I currently have Class A property x as List (Of Class B) End Class Class B ' some other properties End Class When I create crystal report to use Class A as datasource the field explorer doe snot show property x? Is it possible to use strongly typed lists with Crystal Report? 回答1: I'm not 100% sure about List, but you can use ArrayList instead. See my answer on this question: How to use Crystal Reports without a tightly-linked DB connection? 来源: https://stackoverflow.com/questions/1362829/how

displaying a crystal report using c#

☆樱花仙子☆ 提交于 2019-12-24 05:39:24
问题 I am relatively new to C# and i have never used Crystal Reports so i apologise if i do use the incorrect terminology. I am trying to display a report which is called by some C# code. By following a lot of threads on here, i have managed to come up with the following code which does build an debug. However, when the code is run, it does not display the report. Here is the code: private void forAllQualitiesToolStripMenuItem_Click(object sender, EventArgs e) { CrystalReportViewer rv = new

Crystal Report - Pass DateRange Parameter

别等时光非礼了梦想. 提交于 2019-12-24 05:19:31
问题 Relatively new to working with CR. Have lately been converting a lot of old reports that were previously executed via vbscripts to run with vb.net. I have a particular report I can't get working. In order to run, it expects a date range that it stores in a parameter field called "DateRange" In the old vbscript that called this report and exported it, the code to pass this daterange parameter was: Set crParms = CrystalReport.ParameterFields crParms.Item(1).AddCurrentRange CDate(StartDate),

Crystal Reports text cuts off last line in Details section

三世轮回 提交于 2019-12-24 03:51:10
问题 I have a Crystal Report 11 file that is a letter. The first Details section contains a large text box that has print date, address block, and the salutation line. Every once in a while, the last line of the text box gets cut off so that the salutation isn't seen. It's very inconsistent in that sometimes, I run the report for one person in my system and the text is cut off, but if I run the report a few hours later for the same person, without having changed the values of the address or name