crystal-reports

How to handle to_date exceptions in a SELECT statment to ignore those rows?

為{幸葍}努か 提交于 2019-12-17 07:37:16
问题 I have the following query that I am attempting to use as a COMMAND in a crystal report that I am working on. SELECT * FROM myTable WHERE to_date(myTable.sdate, 'MM/dd/yyyy') <= {?EndDate} This works fine, however my only concern is that the date may not always be in the correct format (due to user error). I know that when the to_date function fails it throws an exception.. is it possible to handle this exception in such a way that it ignores the corresponding row in my SELECT statement?

How to bind crystal report to manually created DataSet

家住魔仙堡 提交于 2019-12-17 04:33:51
问题 I wan't to create DataSet from code and set it as data source for crystal report. I don't want to create a DataSet xsd file in VS if I don't have to. Just pure code. DataSet ds = new DataSet(); DataTable tbl = new DataTable(); DataColumn cln = new DataColumn(); // I fill row, columns, table and add it to ds object ... Then when I need report I use: myReport.SetDataSource(ds); The problem here is I don't know how to bind this to report? How to add fields? I have a text and binary data (image).

Compare SQL Server Reporting Services to Crystal Reports [closed]

主宰稳场 提交于 2019-12-17 03:22:00
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Locked . This question and its answers are locked because the question is off-topic but has historical significance. It is not

how to deploye C# windows form application developed with sql server express 2012 and crystal report

本秂侑毒 提交于 2019-12-14 04:25:18
问题 I have developed an application in Microsoft Visual Studio 2013. .Net framework 4.5. DBMS i used is sql server 2012 express and for reporting is used Crystal report 13 I want to Create a setup file which can install .net framework, sql server and crystal report on client computer. This setup should be offline and silent . I used click once but it is not working when i choose "Download file same as my application location". I meant offline setup is not working with click once. Second there is

How to pass a list of values into a crystal report

∥☆過路亽.° 提交于 2019-12-14 03:43:10
问题 I have a list of integer values(employee IDs) which i need to pass to a Crystal Report. I am using a Action class to pass these values. So far i have succeeded with passing a single value but i couldn't find a way to pass a list of values. Fields fields = new Fields(); Values vals1 = new Values(); ParameterFieldDiscreteValue pfieldDV1 = new ParameterFieldDiscreteValue(); pfield1.setName("fromDate"); pfieldDV1.setValue(start_Date); vals1.add(pfieldDV1); pfield1.setCurrentValues(vals1); fields

not able to export Crystal report file to pdf

此生再无相见时 提交于 2019-12-14 03:19:50
问题 I have application in .net ,I created Crystal report from my application. after creating crystal report i tryied to export that crystal file to PDF.. but i am getting error like this Error in file As per my search result i have Installed 2 dll files exportmodeller.dll, crtslv.dll and i re-installed update version of adobe reader(11.0.13),but still getting this error? thanks in advance 回答1: There is a Microsoft update (KB3102429), which causes this issue. Here is an article how to remove it:

Adding Sum of fields of two tables giving strange result in Crystal Report

泄露秘密 提交于 2019-12-14 03:13:56
问题 I am using SAP crystal reports for Visual studio. I have two tables (TableA, TableB). with fields PriceA, PriceB. TableA Field : PriceA ={20,40,40}; TableB Field : PriceB ={50.40,60}; I have created a formula in my main report Formula1 = Sum(TableA.PriceA) + Sum(TableB.PriceB) But instead of getting result as @Formula1 =250. It is giving the incorrect result like '1050' (not exact). How can i get a correct result in this case. 回答1: I would suggest inserting a summary of each field (right

how stop the printer after print the Last line in the crystal report (VS2005)

和自甴很熟 提交于 2019-12-14 02:37:08
问题 i have a crystal report in vs2005. I have to print this report in rollpaper with dotmatrix printer. After printng the report it omit some waste spaces. I have to stop the printer where the last line was printed. i was seached with this problem but i am unable to find a solution. please helpme to come out this problem 回答1: I solved this Problem, wecan't print dircetly in rollpaper with Crystal Reports for dynamic length(ie Dynamic Page Size), Because in Crystal report we have a standard page

MySQL not generating correct results using ODBC date parameter

♀尐吖头ヾ 提交于 2019-12-14 02:28:14
问题 I recently upgraded my version of MySQL to 5.6.10 (community edition on Linux), subsequently I am unable to properly run a Crystal Report that worked fine talking to MySQL 5.0.24a via the MySQL ODBC driver 3.5.1. The report is built off an SQL command which works fine if I manually type in the query and date ala 2013-05-15 into the MySQL client, but when passing the parameter to it via ODBC (which reformats the date in the query as {d '2013-05-15'} MySQL returns random results, meaning one

End of the page in crystal report

时间秒杀一切 提交于 2019-12-13 22:02:26
问题 I am displaying records under a header.sometime the header is printing at the end of the page and remaining details are displaying in next page. page-1 Customer-1 Details-1 Detials-2 Customer-2 Details-1 Detials-2 But i am getting as below Page-1 customer-1 Details-1 Details-2 customer-2 Page-2 Details-1 Detials-2 Only what i want is if header is printing at the end of the page then either i want to suppress it or move it to the next page. i better i suppress it. 回答1: Take header to new page