crystal-reports

Crystal Reports parameters c#

你离开我真会死。 提交于 2020-01-14 05:51:11
问题 I'm trying to send parameters to a Crystal Report document but it doesn't work, the document load the default parameters values. the values that I send are the type of the parameters that I've defined in the report document, and the parameter's names are ok. here is my code. ReportDocument crypRpt = new ReportDocument(); //crLibroDiario Libro = new crLibroDiario(); crypRpt.Load(@"Path\crDiarioLibro.rpt"); ParameterFieldDefinitions crParameterFieldDefinitions; ParameterFieldDefinition

Crystal Reports putting a group in different columns

故事扮演 提交于 2020-01-14 05:41:08
问题 I'm trying to take one group and put it in two different columns. I know you can do that for the details of a group in the section expert but it won't allow you do so for a group. The group is date that I've separated by months for the all of last year and this year to the current date and I want last year's months in one column and this year's months in another column. Like this: January 2011 January 2012 February 2011 February 2012 March 2011 March 2012 April 2011 April 2012 May 2011 June

Crystal Reports - Default Parameters

走远了吗. 提交于 2020-01-14 03:37:08
问题 In Crystal reports, you can define default values for the report parameters. For example, I might have a date range and set a default start of 12/01/2008 and a default end of 12/31/2008. Is it possible to modify these defaults at runtime? For example: 1 - Default to the first and last days of the current month? 2 - Default to the first and last days of a proprietary company fiscal calendar? (i.e., look it up in a database) 3 - First & Last days of the current year? You get the point. Is this

How to eliminate blank rows while exporting to Excel?

心不动则不痛 提交于 2020-01-13 19:38:28
问题 When I export a crystal report to an Excel file, it adds a blank row after every detail row. I have tried many solutions like aligning the fields, keeping the height similar, alignment as baseline. But none of them work. Can you please let me know a solution so that such blank rows don't get added? 回答1: Finally, I got a solution with trial and error method. On crystal report designer, I went to Report->Section Expert. Under Details section, unchecked the 'Free-form Placement' checkbox and

Crystal Reports - Value cannot be null. Parameter name: window

柔情痞子 提交于 2020-01-13 09:07:07
问题 I recently came across an unusual error when attempting to load a crystal report form into my WPF application via a dialog, the report would show as loading for a few seconds and then throw an error stating " Value cannot be null. Parameter name: window " This confused me, as far as i know, crystal reports doesn't use a parameter named window. This was my code: A simple window with a CrystalReportsViewer <Window x:Class="Client.Views.ReportsWindowView" xmlns="http://schemas.microsoft.com

How to send parameters to Subreport in Crystal Reports

不想你离开。 提交于 2020-01-13 03:22:47
问题 Using VS 2008. I have two stored procedures, one used to get data for the main report and other for Sub report and both the SP's use the same parameter QuoteID. I have send parameter to main report using ReportDocument. But I am not aware how to send parameters to SubReport. I tried many diff ways using the reportdocument's setparameter method which also takes subreport name as argument.But it didn't. Below is the code I have used string Type = gvQuotationDetails.Rows[QuoteIndex].Cells["Type"

Crystal Reports in Visual Studio 2015 Community

大城市里の小女人 提交于 2020-01-13 03:22:12
问题 Hi I have a simple question, but I can't find any info about it. I know that Crystal Reports didn't run with VS Express edition but what is with VS 2015 Community version ? it's working or not ? Someone test it ? 回答1: Yes, you are right, VS Express is not support Crystal report, but VS2015 community addition support CR. Check this links. http://www.tektutorialshub.com/download-crystal-reports-for-visual-studio-2015/ http://scn.sap.com/docs/DOC-7824 Visual Studio Community 2015 with Crystal

Crystal Reports Runtime for VS on Windows 7 Throws an Error

眉间皱痕 提交于 2020-01-13 02:44:12
问题 It seems to be working fine on my development machine, or the Windows XP test machines, but I'm running into problems on the Windows 7 test machines. After that, I get a normal crash error: ************** Exception Text ************** System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> System

How to directly print a Report without going through Crystal Reports Viewer

杀马特。学长 韩版系。学妹 提交于 2020-01-12 09:15:32
问题 I wrote this code to print a Crystal report.. but I got error 'missing parameters'... ReportDocument rdoc = new ReportDocument(); rdoc .Load (Application.StartupPath +"\\"+@"REPORTS\SalaryReport.rpt"); rdoc.SetDataSource(ds.Tables[0]); ParameterFields pfs = new ParameterFields(); ParameterField pfv = new ParameterField(); ParameterDiscreteValue pdv1 = new ParameterDiscreteValue(); pfv.Name = "fd"; pdv1.Value = fd; pfv.CurrentValues.Add(pdv1); pfs.Add(pfv); ParameterField pfv1 = new

Check for Numeric Value in Crystal Reports

匆匆过客 提交于 2020-01-11 09:22:22
问题 I need to check if a database field contains a numeric value in it. Here is some pseudo code: if {myField} is numeric // do something else // do something else I'm looking for a function that will allow me to do the check '{myField} is numeric'. To help, here are some possible values for {myField} and what the result should be: {myField} = '' returns false {myField} = 'abc123' returns false {myField} = '123abc' returns false {myField} = '123' returns true 回答1: Using Crystal Syntax NumericText