crystal-reports

How can I filter my data in Crystal Reports in C#?

孤者浪人 提交于 2019-12-24 21:34:39
问题 I have text fields where I can enter all my data, and when I click a button print it will directly go into the Crystal Report which is already filtered containing my data. How do I do this? 回答1: Pass the data as parameters to the Report. Bind the button click event to Generate the Report. 来源: https://stackoverflow.com/questions/2263390/how-can-i-filter-my-data-in-crystal-reports-in-c

Crystal report failed to retrieve data from database

喜你入骨 提交于 2019-12-24 20:41:08
问题 Is there an error in crystal report the problem is that he can not recover the data since oracle, I made a query that is workable on oracle but when I post it on command, at first it works well but after a moment he shows me this error, please someone can help me and this is the query select to_char(to_date('1970-01-01 00','yyyy-mm-dd hh24') + (time)/60/60/24 , 'YYYY-MM-DD') datestr, L.LOGINID, L.STATUS, L.TIME, O.PRESENTATION_NAME, N_CALLSANSWERED_ from "REP_STAT_DB"."LOGIN" L join "GCTI

Crystal reports setting for Language

时间秒杀一切 提交于 2019-12-24 20:24:55
问题 I have a report that I run and comes up with different characters based on the {race} field. For example if {race} = Chinese in the report viewer it translates "Chinese: in Chinese characters and for any other race it does the same. Is this a setting in Crystal reports that I can change this to. Also if i run the report on a different PC with Crystal runs fine. What could be the setting that is causing this in Crystal Reports XI Thanks in advance 回答1: Here are the steps: Click Start > Control

PL/SQL Procedure and a crystal report

孤街醉人 提交于 2019-12-24 20:02:51
问题 I am trying to use the following procedure as a datasource for my crystal report. The query works as I expected but the problem is I can't figure out how to fetch back the data from those dummy tables - IFS_PR_DUMMY_TAB and IFS_PR_DUMMY2_TAB CREATE OR REPLACE procedure dummy9_IFS_FR2_Sales (cdate IN date) as acontract customer_order.contract%type; ashowroom customer_order.district_code%type; aorderno customer_order.order_no%type; amount number(10); bcontract customer_order.contract%type;

Running total field gives options for Min, Max, etc. but not Sum

一世执手 提交于 2019-12-24 19:29:48
问题 I wants to design Crystal Reports as follow Name //(Group) Date Amount 12/04/2010 100 12/05/2010 200 Total…. 300 But there are problem on insert Running Total summarize by change of group fields. I have tried by right clicking on field Insert + Running Total. But there are no option of Sum in Type of Summery. There are following option : Type of Summery Maximum Minimum Count Distinct count Nth largest Nth smallest How can I add/minus/multiply Group Wise ?. 回答1: Convert the Datatype of Amount

Crystal Report : Nothing appears in crystal report

你离开我真会死。 提交于 2019-12-24 19:28:31
问题 I am using Crystal Report Version=13 in my Web Application using Asp.Net . My reports were working fine, i don't remember what changes i have made, due to which the report is not showing data, even Design is not shown of report. When i open report and refresh it, in Fire Bug i got the below error. bobj.crv.stateManager.setComponentState('CrystalReportViewer1__UI',eval('('+document.getElementById('__CRYSTALSTATECrystalReportViewer1').value+')')); Any one have experience of such type of error.

how to use wildcard in Crystal report selection expert

ぃ、小莉子 提交于 2019-12-24 19:07:33
问题 i found this on another forum set your default value 'ALL' for parameter add if statement to Select Expert: If {?Parameter}='ALL' Then {Database.Field} like '*' Else {Database.Field} = {?Parameter} and {fctime_ts} >= {@StartDate} and {fctime_ts} < {@EndDate} that didnt work, for some reason it isnt using the date constraints. So then i tried the following. {fpartno} = IIF({?PartNbr} = 'All', '*' , {?PartNbr}) that works great if i use an actual part number, but when i use the defaul ALL it

Alternating the background color of rows or text boxes

喜欢而已 提交于 2019-12-24 16:53:17
问题 I have data coming from data base in crystal report by SAP with VS2010 SQLServer, displayed in text boxes since Crystal doesn't have data grids. How can there I alternate the background colors of those text boxes? 回答1: Create a custom formula; call it 'Colorize': //Color every other row as light tan (alter RGB to suit tastes) Function (Numbervar row, Optional Numbervar Color := RGB(239,235,220)) If Remainder(row,2)=0 Then Color Else crNoColor Add the following to the Detail section's

How to programmatically change a Crystal Reports formula from Crystal Syntax to Basic Syntax - in Visual Studio 2005

这一生的挚爱 提交于 2019-12-24 15:46:43
问题 I want to programmatically change formulas in a whole lot of reports, like in this question, but I also need to change the formula between Crystal Syntax and Basic Syntax. I can't see any way to do this in the object model. Is it possible? i.e. I have a formula called 'Period' that already exists in a whole lot of reports, and it's currently defined in Crystal Syntax. I want to set the formula to be in Basic Syntax and provide updated text of the formula. I don't need to automatically convert

crystal report error: “a string is required here” on select

荒凉一梦 提交于 2019-12-24 15:34:41
问题 I run the following code in crystal reports and it tells me that " string is required here" on the second case. I've tried casting {?Pm-Student_course_attendance_csv.Level} as a string, but no luck Global NumberVar grade; Global NumberVar baseline; Select ({?Pm-Student_course_attendance_csv.Level}) Case "R", "TL", "TU", "OTH", "P", "BTECFS": If (CStr({PM_csv.mv_value}) = "Pass") Then "On Track" Else "Below" Case "H", "ASD", "AD", "AS", "G": //error from this line onwards inclusive Select