crystal-reports-xi

Crystal Reports - Data repeating if chart is included

只谈情不闲聊 提交于 2019-12-06 09:20:41
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 same report, the data in the details section gets multiplied, and I get 64 rows or something with the

Page Total for MultiColumn in Crystal Report

╄→尐↘猪︶ㄣ 提交于 2019-12-05 08:29:47
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. 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 after you finish testing) Create another formula named "PageTotal.Reset" with the following text: //{

Transposing Row Data as Columns in Crystal Reports

南楼画角 提交于 2019-12-02 07:30:45
I have the following data returned from a stored procedure Staff Category Amount ----- ------- ------ Bob Art 123 Bob Sport 777 Bob Music 342 Jeff Art 0 Jeff Sport 11 Jeff Music 27 All Categories will always be returned for all Staff even is the Amount is zero What I want to do on my Crystal Report is output this:- Staff Art Sport Music ----- --- ----- ----- Bob 123 777 342 Jeff 0 11 27 I effectively want to Transpose the data in the Category rows as headers or columns in my report. I do not want to use a Cross Tab as I have other things I need to add which will not fit nicely into a Cross Tab

Programmatically set Custom Paper Size for Crystal Report

匆匆过客 提交于 2019-11-29 16:56:01
I have created custom paper Size "SUPP 15 x 14" in Setting - Printers - File - Server Properties. Now I’m trying to set custom Paper Size for Crystal Report using VB.net 2005. When I run report from VB.net, the Crystal report viewer shows the correct preview for custom paper size but when I give print command it prints with the default printer paper size. (e.g Letter) Here's the code I'm using to print: Public Sub ... '... Dim ObjCrReport as new ReportDocument '... ObjCrReport.SetDataSource(ObjPrintDataSet.Tables("PrintData")) SetReportPageSize("SUPP 15 x 14", 1) '... End Sub Private Sub

Open the link in new window in crystal report

 ̄綄美尐妖づ 提交于 2019-11-28 12:38:56
I have crystal report. There is the column containing the hyperlink. I want whenever click that link that page should open in new window. All this should be done in crystal reports. Can I get any help? Your Field contains a URL and if you want to make that URL as hyperlink in crystal report, it can be done. Consider the following sample report, which contains search engine's names and their links Now your requirement is to open Google by clicking www.google.com . Right Click the field which you want to make Hyperlink, and select Format Field . You will get the Format Editor as like the

Programmatically set Custom Paper Size for Crystal Report

梦想的初衷 提交于 2019-11-28 11:14:41
问题 I have created custom paper Size "SUPP 15 x 14" in Setting - Printers - File - Server Properties. Now I’m trying to set custom Paper Size for Crystal Report using VB.net 2005. When I run report from VB.net, the Crystal report viewer shows the correct preview for custom paper size but when I give print command it prints with the default printer paper size. (e.g Letter) Here's the code I'm using to print: Public Sub ... '... Dim ObjCrReport as new ReportDocument '... ObjCrReport.SetDataSource

How to pass values to two different parameters

[亡魂溺海] 提交于 2019-11-28 01:06:25
I am developing a Windows Application and use a Crystal Report in it. I am able to pass value to one parameter of Crystal Report. Now, I have added one more parameter to Crystal Report, but confused about what modification I have to make in below code. Below code is written to pass value to one parameter of CR. Private Sub btnLoadBatch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoadBatch.Click Try Dim cr As New crMonthwiseBatch Dim oBatches As New Batches Dim Month As Integer = dtFrom.Value.Date.Month Dim StartDateForBatch As Date = New DateTime

The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception

不想你离开。 提交于 2019-11-27 07:08:05
问题 I'm working on a project and have run into an issue. When I run my code I get this error message: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception The title of the message is "TypeInitializerException was unhandled". I receive this error at this line of code: this.crystalReportViewer = new CrystalDecisions.Windows.Forms.CrystalReportViewer(); I've been looking up ways to fix this issue, but I keep running into another issue. Everything I find about how to fix

Open the link in new window in crystal report

回眸只為那壹抹淺笑 提交于 2019-11-27 07:06:25
问题 I have crystal report. There is the column containing the hyperlink. I want whenever click that link that page should open in new window. All this should be done in crystal reports. Can I get any help? 回答1: Your Field contains a URL and if you want to make that URL as hyperlink in crystal report, it can be done. Consider the following sample report, which contains search engine's names and their links Now your requirement is to open Google by clicking www.google.com . Right Click the field