crystal-reports-xi

How to switch database connection at runtime in crystal reports using java swing

你说的曾经没有我的故事 提交于 2019-12-11 04:42:13
问题 Please help. I am developing a swing application that can open reports made using crystal reports xi. What Im trying to do is to open a report and pass the connection info to that report so that I can dynamically change the database of the report. But for some reason it is not working and the report still produces the information from the database that it was initially set up. Can someone please tell me what I did wrong? Btw when I try using com.crystaldecisions.sdk.occa.report.application

Selection formula excluding rows with columns having null values

随声附和 提交于 2019-12-11 04:34:13
问题 I have a strange issue. I have a report CR. In the Selection Formula I do a test on two fields. The test is simple like that : {field_City} = 'Paris' OR {field_Country} = 'France' . This is a sample of the data in my table: |---------------|---------------|---------------| | ID_Record | Country | City | |---------------|---------------|---------------| | 1 | null | Paris | |---------------|---------------|---------------| | 2 | France | null | |---------------|---------------|---------------|

Get previous quarter start and end date in Crystal Reports

北慕城南 提交于 2019-12-11 01:26:18
问题 Like many have asked (but not for Crystal Reports that I can find), I'm looking for how to get the previous quarter start and end dates. Since today is 7/10/2014, I can use DateAdd("Q", -1, CurrentDate) and it returns 4/10/2104 12:00:00AM What I want is the previous quarter start and end dates. For today, that would be 4/1/2014 and 6/30/2014. In October, it should instead return 7/1/2014 and 9/30/2014. I only want the date part, not the time. I'm looking through the Crystal Date and Time and

How do I load images dynamically in Crystal Reports XI

混江龙づ霸主 提交于 2019-12-10 11:47:00
问题 HI I am running a Crystal Reports XI from .NET application. I am passing parameter name as company and report should display the logo depends on company. How we can load the image dynamically in crystal report.(how to write formula to load the image from specific directory) 回答1: A simple solution for Crystal Reports XI is to pass the image's URL as a parameter to the report, then use it as the picture's graphic location. Create a string parameter field, call it 'imageUrl'. Add an image

suppress line conditional in crystal report

☆樱花仙子☆ 提交于 2019-12-09 10:55:02
问题 I've a vertical line that i want to suppress with a condition. Unfortunately I don't see the condition option by a line. When I use an empty textbox, all the other text is moved down. Is there conditional another suppress option for a line? 回答1: You can't conditionally suppress a line in CR. I know of two options to get around that: Put the line in its own section and then conditionally suppress the section. Put a textbox over the line and then conditionally format the background of the

Send Subreport Parameter to main report parameter in crystal report

风流意气都作罢 提交于 2019-12-08 11:45:08
问题 I am using Crystal Report , and I want to display the value of shared variable in Main Report that will change from Sub Report . I know, this is a very old topic, and there are solutions available on the internet and stackoverflow also. Crystal Reports: How to pass a parameter from a subreport to the parent report? http://www.ehow.com/how_5287432_use-shared-variable-crystal-report.html I tried both solution but none of them is working. I am sure something I am missing. I am just started

Crystal XI memory management, C# Managed code

夙愿已清 提交于 2019-12-08 11:06:44
问题 How do you handle Crystal reports XI memory management. We have found that in our reporting solution, we run out of memory once we try to produce multi threaded reports? Is this purely based on the fact that Crystal is not pure managed code? Crystal Business Objects developer (under cloack) welcome to comment X-) 回答1: Have you reviewed the Crystal Reports Memory Issue Trouble Shooting documentation? Troubleshooting Tips for various types of memory errors 来源: https://stackoverflow.com

Correct ISO week numbering in Crystal Reports XI

感情迁移 提交于 2019-12-08 02:31:40
问题 How can I get the ISO-8601 week number of a given date in Crystal Reports XI? 回答1: Crystal Reports supports the DatePart -function which can give you the ISO week number of a given date. NumberVar week := DatePart("ww", date, crMonday, crFirstFourDays); However, in Crystal Reports XI there is a bug that gives erronous results round new year. The best solution is probably to create an own function getISOWeekNumber: Function (optional DateVar d := CurrentDate) NumberVar week := DatePart("ww", d

Crystal Reports - Data repeating if chart is included

吃可爱长大的小学妹 提交于 2019-12-08 02:04:09
问题 We are using Crystal Reports XI R3 for our reporting purposes. We have created typed dataset which act as the datasource for the reports. I am facing an issue including a bar chart along with the grid on one of the reports. The chart gets embedded into the header section by default and the grid is generated out of the details section. If I design the report without the chart, it all works fine. If I supply 8 rows of data, it publishes 8 rows in the report too. But if I include a chart on the

Page Total for MultiColumn in Crystal Report

倖福魔咒の 提交于 2019-12-07 01:50:53
问题 I have a multicolumn crystal reports, Now i want to display running total for both weight & amount column's. The image of actual report is this But crystal report designer does not show other columns, so on which column should i compute the value. 回答1: Follow this approach: Create a formula named "RunningTotal" with the following text: //{@RunningTotal} WhilePrintingRecords; Numbervar RunningTotal_Amount; Numbervar RunningTotal_Weight Add this formula to the Report Header section (suppress it