crystal-reports

Crystal Reports Changing the Data Source

我们两清 提交于 2019-12-30 05:53:21
问题 I have a Crystal report where the data source has originally been set to use ODBC connections. Now I want to modify the data source to instead use OLE DB instead of using ODBC. How do I replace the data source connection without breaking the database fields which I have originally set up for my report? If I try to delete the original data source, the fields which I have already set up are also deleted. Is there a way to map the report to use OLE DB instead of the ODBC connection? Thanks. 回答1:

IN operator in Crystal Report

风格不统一 提交于 2019-12-30 04:49:22
问题 I was trying to filter the crystal report by using the IN operator like what we do in SQL. In crystal report, i was trying to do it the same way as something like this ({i_NonPfcIncDetStt.TeamCode} IN ('ABC','DEF')) but it's giving me error, "The ) is mising" . Any idea how can i do this in crystal report? 回答1: ({i_NonPfcIncDetStt.TeamCode} IN ['ABC','DEF']) perhaps? 回答2: Yep, use the brackets not parens. For fancy, you can put the to-match strings in a delimited string variable, and then use

Crystal Reports DateTime Formatting

£可爱£侵袭症+ 提交于 2019-12-29 08:50:52
问题 I'd like to format a datetime in Crystal Reports to a include the day of week. From: 19/06/2009 To: Friday, June 19, 2009 回答1: In Crystal Reports XI Release 2 you can right click on the field and go to Format Field. On the "Date and Time" tab click the customize button. Under the Date Tab change the Date Type drop down to "Windows Default Long". 回答2: If in a formula, you can use the following. CSTR({?@end_dt}, "dddd, MMMM d, yyyy") 回答3: If the DateTime is in field (not a formula) : Right

suppress column and remove blank space in crystal report

◇◆丶佛笑我妖孽 提交于 2019-12-29 08:44:28
问题 I'm working on Microsoft Visual Studio 2003. I'm searching for a way to suppress a column if it is empty and replace the blank space left by the other columns. I'm searching everywhere but I can't find a compatible way to the version 2003. Does exist a simple way? I appreciate any help. 回答1: Crystal Reports doesn't have an automatic (or easy) way to dynamically move columns. You might consider multiple header and details sections that could approximate this--simply suppress the sections that

Retrieve record count of subreport in Crystal Reports

醉酒当歌 提交于 2019-12-29 07:08:26
问题 How can I retrieve the record count of a subreport from within the main report? 回答1: I think this is a dupe, but I'll answer anyway. :) You can create a formula field on the subreport which contains a shared variable. In the formula you'll set the shared variable to the value of the rowcount field in the subreport. Then in your main report you will need to create a formula with a shared variable that has the same name as the subreport and then return the value of the shared variable. Here are

Crystal report fails to load when application is deployed in IIS

心不动则不痛 提交于 2019-12-29 01:59:08
问题 I copied the packageTmp over to the inetpub/wwwroot, then added a website and included it as my path. Installed the crystal report runtime, CRRuntime_32bit_13_0_4 - but still did not work. I also have crystalreportviewers13 folder in wwwroot/aspnet _client/systemweb/4_0_30319 This is the error I encountered when I go to the page with crystal report. May i know where the path is defined? This problem occurs when I deploy my application in IIS. Exception Details: System.Runtime.InteropServices

How to pass values to two different parameters

只愿长相守 提交于 2019-12-28 06:48:06
问题 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

Using Crystal Reports, we want to suppress a section based on user input in a parameter

流过昼夜 提交于 2019-12-25 16:56:05
问题 The parameter has yet to be setup, but it will be to determine what jobs to pull (Open, Soft Closed, Closed, or All). So, if the user says they want Open jobs to print, we want the section to suppress if ContractStatus<>Open. Any suggestions? 回答1: In the Section Expert, highlight the section you want to suppress. Next to Suppress click on the formula button (x-2). Do not check the Suppress box! Create a formula like: {tableName.ContractStatus} <> {?ParameterName} This will suppress the

Loading many crystal reports causes app crash?

谁说我不能喝 提交于 2019-12-25 14:48:52
问题 In application, there are many crystal reports, and all of them load with one method (same way), one of them loads maybe every 5 or 10 seconds (for more clarification, there is a list view with many items, each of them if the user make double click on it, a crystal report open and shows data about that item) The problem now, is when user opens more than 3 or 4 reports by double click (not at same time, close one and open another one), and then open another reports, the app crashes because of

Crystal Report not appearing in Visual Studio 2012/13 Add New Item

烂漫一生 提交于 2019-12-25 10:19:15
问题 I have installed Crystal report 2011 SP4 on my system where VS 2012 and 2013 are already isntalled. I dont see Crystal Report showing up in Add New Item -> Reporting dialog box. 回答1: According to this document https://www.tektutorialshub.com/install-crystal-reports-visual-studio/#Visual-Studio-2013-VS-2013 you might need a newer version of CR: Visual Studio 2012 (VS 2012) You can install SP 7 or higher. Visual Studio 2013 (VS 2013) Any version above the SP 9 is allowed 来源: https:/