crystal-reports

“Database Logon Failed” error after upgrading from VS 2008 to VS 2010

戏子无情 提交于 2019-12-13 21:52:37
问题 I have a app that was written in VS 2008 for .net 2, upgraded to VS 2010 and built for .net 4. In this app is a Crystal Report. There should be absolutely NO database interaction done by the report. I manually set the various ITextObject fields from one of the objects in my project. Example: to = (CrystalDecisions.CrystalReports.Engine.TextObject)crystalPrint.Section2.ReportObjects["tbName"]; to.Text = visitor.first + " " + visitor.last; to = (CrystalDecisions.CrystalReports.Engine.TextObject

Where do you put the Oracle's JDBC Thin Driver for Crystal Reports?

牧云@^-^@ 提交于 2019-12-13 21:28:17
问题 Where do you save the jdbc thin driver for Oracle? I have tried jre/lib/ext but my program, Crystal Reports keeps saying it can't find it. I figure I have saved it in the wrong place. If I go to a command prompt and use: C:\TEMP>java oracle.jdbc.OracleDriver Oracle 11.2.0.3.0 JDBC 4.0 compiled with JDK6 on Fri_Aug_26_08:19:15_PDT_2011 Default Connection Properties Resource Wed Oct 12 14:02:05 EDT 2011 So I know it is there. edit: Since I could not get CR to work I tried a console app but it

text rotation 180 degree in crystal report

烈酒焚心 提交于 2019-12-13 21:05:27
问题 How to rotate text 180 degree in crystal report? I'm using visual studio 2005 with c#. There's text rotation angle property in crystal report but there's no 180 degree. I don't want to use image. I want to display some data are rotate 0 degree, some are 180 degree, some are 270 degree. Thanks in advance. 回答1: There're free upside down fonts on the net but they're not suitable for me. So I create my own font with Type light free font creator for upside down font. It's a nice software. 来源:

Crystal Reports: Showing only first record in each group

北城以北 提交于 2019-12-13 20:25:30
问题 I searched to get the required answer but not found exactly what iam looking for - please help me. Please follow the steps i made in crystal report: Using crystal report command (i created a query to get the required business number) --> which gets 5 Business numbers Note: Every business is having many receipt numbers (1st installment receipt, 2nd installment receipts... like that....) - these receipt details are stored in table_receipts. In table_business - i have all details about business

Generating Crystal Reports from DataSets and DataTables

三世轮回 提交于 2019-12-13 18:47:23
问题 I need to generate a report in Crystal Reports in an application in which there is only a stand-alone DataSet (not connected to any type of database). Also, I need to generate a report based on the values in DataTable. Could you please show me through, I am a newbie. I have a template, but I do not know how to generate a report from a DataTable, nor how to insert in into the templates. 回答1: This article is just for you; Crystal Report with DataSet and DataTable using C# Binding Our Report to

Convert RTF Stream to Plain Text Stream

独自空忆成欢 提交于 2019-12-13 18:15:33
问题 I have crystal report and I need to convert it to text file. Currently I can only convert it to RTF Stream. Now I need to convert the RTF Stream to Text Stream. I am using C#. Thanks. 回答1: Correct me if I am wrong but you are using the ExportToStream method with ExportFormatType.RichText: Stream stream = report.ExportToStream(ExportFormatType.RichText); This exports the report into an RTF stream. Now you wish to convert this stream to plain text (extract the text from the RTF). If that's true

Previous function, but for two (or more) rows previous

大憨熊 提交于 2019-12-13 17:38:08
问题 I'd like to get the value of a cell, two rows previous, is that possible? I know I can do the row previous, but I'd like two (or more) rows previous Previous({myTable.myColumn}) 回答1: Not with any standard functionality that I'm aware of. Off the top of my head, though, you could try shared variables. For example, you could have PrevRecord1 and PrevRecord2 variables. A function that is in the detail row of the report would then update PrevRecord2 with PrevRecord1 , and then update PrevRecord1

Dynamic grouping in crystal reports

六眼飞鱼酱① 提交于 2019-12-13 16:10:44
问题 So I have these 3 table/views in my database. Table id template View1 // the ids in this view have a corresponding id in table if template = 1 id type1 View2 // the ids in this view have a corresponding id in table if template = 2 id type2 So in my report, I want to select all the ids... and then group by template, and then group by type. I can do this for one View at a time by setting up the group to be either View1.type1 or View2.type2. But, I want it to group by View1.type1 if template is

Select records using crystal report with null condition

怎甘沉沦 提交于 2019-12-13 14:26:42
问题 I was trying to filter the data in database with the following formula in my crystal report and one of the condition is to included the data even this, '{vw_CandidateProfile.Type}' is null or empty string. But the formula below doesn't work. Any ideas? {vw_CandidateProfile.Candidate_Code} = '881225095228' AND ( {vw_CandidateProfile.Type} IN ['NGO','EDU','PRS','PPR','PPS','TTL','OTH'] OR ISNULL({vw_CandidateProfile.Type}) ) 回答1: I have found the solution in which the IsNull() field has to

How to add chart in page header of crystal reports

社会主义新天地 提交于 2019-12-13 14:09:42
问题 I tried to add a chart in page header of crystal reports but it adds only in report header and report footer only. How to add chart in page header? 回答1: You can't have a chart in the page header, or detail sections; a chart will only function in the report header or footer. If you require a chart in the page header, create a subreport in the page header, and place the chart within the subreport. 来源: https://stackoverflow.com/questions/12640969/how-to-add-chart-in-page-header-of-crystal