crystal-reports

Crystal Reports: including a subreport into a grouping section?

痞子三分冷 提交于 2020-01-05 06:26:24
问题 I have a report which lists out a company detail. There are two sections to the company detail. The first portion lists out environmental data and the second is actually a subreport which lists out Cash flow details for every single year of the company. I have multiple companies i need to do this for--so i grouped the report by Company. This works like a dream except for when it comes to the subreport. I'm having real issues trying to get it so that every single company has a different

Change number of copies displayed in PrintDialog box

别说谁变了你拦得住时间么 提交于 2020-01-05 04:58:28
问题 I am working on Crystal Reports for Visual Studio 2005. I need to change the default printer, and the number of copies to 2 as compared to the default of 1. I have succeeded to change the default printer using below code. static int SetAsDefaultPrinter(string printerDevice) { int ret = 0; try { string path = "win32_printer.DeviceId='" + printerDevice + "'"; using (ManagementObject printer = new ManagementObject(path)) { ManagementBaseObject outParams = printer.InvokeMethod("SetDefaultPrinter"

CrystalReportViewer deployment

你。 提交于 2020-01-05 04:04:31
问题 I created a VS 2008 C# MVC application which uses CrystalReportViewer to display a report. All the .dll files I used are either version 12.0.2000 or 12.0.1100. The application works well on my localhost and the dev environment. When I deployed it (on a vista virtual machine with IIS 7.0) I ran two files : 1) CRRuntime_12_2_mlb.msi 2) CRRedist2008_x86.msi Still when I open the viewer to view a report all I see is an empty view( the view only contains the CrystalReportViewer so obviously

why use beforereadingrecords / whilereadingrecords / whileprintingrecords in crystal reports?

社会主义新天地 提交于 2020-01-05 03:03:30
问题 I know crystal reports has 3 phases when it renders a report, and depending on the phase it may read static data or grouped data fields etc, but is there any benefit writing formulas in any of these phases? The end result should always be the same if I specify the phase or not? 回答1: The end result will not always be the same and omitting evaluation time functions can sometimes lead to incorrect results. For example, consider that you have a report that is grouped and that you are trying to

Crystal Report “Logon failed…” Error when trying to navigation to next page

↘锁芯ラ 提交于 2020-01-05 01:07:30
问题 I have a web-based Crystal Report that loads successfully, but when i try to navigate to the next page using the toolbar at the top of my CrystalReportViewer then i get the following error: "Logon failed. Details: ADO Error Code: 0x Source: Microsoft SQL Native Client Description: Login failed for user 'sa'. SQL State: 28000 Native Error: Error in File C:\DOCUME~1\SOFTLITE\ASPNET\LOCALS~1\Temp\ClientReport {02A69EDD-9B03-4490-B3A2-5E5E5F5592D9}.rpt: Unable to connect: incorrect log on

Crystal Reports: Passing Multiline Parameter Values

若如初见. 提交于 2020-01-04 14:01:07
问题 I want to pass some parameters to a Crystal Report like this: ReportDocument.DataDefinition.FormulaFields[parameterName].Text = 'Text'; This workes fine unless I want to pass a multiline textbox from ASPX (containing \n and \r chars.) The reportviewer reports that "The matching ' for this string is missing.". Is there any example/list/suggestion how to parse the (multiline) text and make this work? Thanks, Stefan 回答1: If you want to retain line breaks you should replace them with something

Cannot find KeycodeV2.dll, or invalid keycode

左心房为你撑大大i 提交于 2020-01-04 05:25:12
问题 I have a legacy application developed in vs2003 and crystal report 9 web based and installed on windows xp and its running very fine, I want to move this application from windowsxp to window2008 server and iis7 having vs2010 and crystal report xi is installed on that machine , when i tried to open any report I am getting the following error Cannot find KeycodeV2.dll, or invalid keycode i have copy this dll in the bin folder as well as in system32 folder even i have registered this dll with

How to align a text to justified in Crystal Reports?

柔情痞子 提交于 2020-01-03 19:38:36
问题 I have a text like below. ABC agrees to provide programming services for ABI ‎("‎CLIENT‎") ‎as described below under "‎Programming Services‎" ‎for <u>which CLIENT is to pay</u> a rate described in Attachment A. This text should be underlined and the whole text should be justified. I have used a formula field with TextInterpretation as HTMLText . The text is underlined, but it's not justified correctly. I tried to use TextObject , it's justified but the required text is not underlined. Please

How to align a text to justified in Crystal Reports?

给你一囗甜甜゛ 提交于 2020-01-03 19:38:15
问题 I have a text like below. ABC agrees to provide programming services for ABI ‎("‎CLIENT‎") ‎as described below under "‎Programming Services‎" ‎for <u>which CLIENT is to pay</u> a rate described in Attachment A. This text should be underlined and the whole text should be justified. I have used a formula field with TextInterpretation as HTMLText . The text is underlined, but it's not justified correctly. I tried to use TextObject , it's justified but the required text is not underlined. Please

Crystal Report in .NET Framework 4.0

两盒软妹~` 提交于 2020-01-03 17:27:14
问题 We've a WPF application written in .NET 3.5 using Visual Studio 2010 . The solution consists of 8 projects - all compiled in .NET 3.5 . The application uses Crystal Report. Target OS is Windows 7. Recently, the startup project is compiled in .NET 4.0 due to some 3rd party DLL dependency - those DLLs require .NET 4.0. After this change and rebuilding the solution, Crystal Report is throwing exception. The problem occurs at the constructor of ReportClass . Exception's message: The type