crystal-reports

'This field name is not known' error (Crystal Reports)

好久不见. 提交于 2020-01-02 01:27:04
问题 Here is a strange problem I have run into. My record select formula is as follows, I have dumbed it down for purposes of this error: reportDocument.RecordSelectionFormula = " {@ClientName} = 'Smith' " If I copy this exact selection statement into Crystal it previews fine, but when run from .NET I get 'This field name is not known'. The problem is occurring at the @ClientName formula field. @ClientName simply contains: formula = {aw_illust.CL1LNAM} I can also set it to just a blank string

'This field name is not known' error (Crystal Reports)

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-02 01:26:59
问题 Here is a strange problem I have run into. My record select formula is as follows, I have dumbed it down for purposes of this error: reportDocument.RecordSelectionFormula = " {@ClientName} = 'Smith' " If I copy this exact selection statement into Crystal it previews fine, but when run from .NET I get 'This field name is not known'. The problem is occurring at the @ClientName formula field. @ClientName simply contains: formula = {aw_illust.CL1LNAM} I can also set it to just a blank string

Dynamically change database type, source etc in Crystal Reports (for Visual Studio 2012)

删除回忆录丶 提交于 2020-01-01 19:57:06
问题 I've researched many different ways of how to dynamically change the datasource connection here on StackOverflow. I used and verified almost every c# and vb.net example I could find, but somehow things won't work out as they should. The idea of our project is to change the datasource connections from the old reports - that are using an xBase dll - to crdb_ado.dll with the VFPOLEDB-provider to connect to Visual Foxpro DBF files (each file representing one table). I've downloaded the latest

Crystal Reports in ASP.NET3.5

江枫思渺然 提交于 2020-01-01 19:43:31
问题 I am trying to add crystal report viewer in ASP.NET 3.5 application, but its giving me this error. The type 'CrystalDecisions.Enterprise.EnterpriseSession' is defined in an assembly that is not referenced. You must add a reference to assembly 'CrystalDecisions.Enterprise.Framework, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'. I have added this in web.config file under assemblies tag, added reference also. But still giving this error. Any idea about it?? Thanks. 回答1:

How to resolve Crystal Report version conflict and make them work side-by-side?

左心房为你撑大大i 提交于 2020-01-01 09:31:00
问题 I have VS-2005 and VS-2010 installed. As Crystal Reports is available as a separate download for VS-2010, I downloaded it and installed. My old projects were in VS-2010 which uses Crystal Reports version 10.0. New projects are in VS-2010 whose Crystal Reports version is 13.0. I made a small application in VS-2010 with a single report. When I try to run this project, it displays errors: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:\Windows\assembly\GAC_MSIL

Setup project with crystal reports and VS2010 fails to register crystal dlls

假装没事ソ 提交于 2020-01-01 05:43:49
问题 I built some crystal reports in VS2010, and made a setup project for it. It deploys fine on my dev machine, but I get the following error while trying to install it on the client machine. I have googled this error for sometime and found that the VC++ 2005 redistributables are a prereq. I have added these merge modules to my setup project but I still get the same error. I have also added .NET 4.0 as a prerequisite, and still get the same error. Anybody has any ideas? My dev machine is running

Add Image To Crystal Report At Runtime

牧云@^-^@ 提交于 2020-01-01 05:16:07
问题 I would like to add an image to a crystal report at runtime. I am currently doing this using a second data table containing only a byte field and then a blob field on the report. However this feels like a hack and if there is no data in the first primary table then for some reason the image does not show. Is it possible to add an image with code or another method? I'm using crystal reports for visual studio 2010. Winforms project. Either C# or VB. 回答1: If you want to store the logo on disk

How to set value by call variable name from string c#

筅森魡賤 提交于 2019-12-31 07:18:27
问题 Now I'm new for c# development. I have 100 data from Array and also have 100 variables. How can I match 100 data with 100 variables? for example for(int count = 0 ; count < array.lenght ; count++) { Var+count = array[count]; } Something like this. or you guy have another solution please help me. I don't want to do like set Var1 to Var100 by hand. More Information Actually I need to add the arrays values to text object in CrystalReport For example if I want to add the value TextObject txtLot1

How to make a sum of total for each id

≯℡__Kan透↙ 提交于 2019-12-31 06:19:10
问题 Using Crystal report 7 I want to view the table 1 and sum of table2 table1 id name 001 raja 002 vijay 003 suresh .... table2 id value 001 100 001 200 001 150 002 200 003 150 003 200 ... I want to display all the rows from table1 and sum(values) from table2. How to do this in crystal report Expected Output id name value 001 raja 450 002 vijay 200 003 suresh 350 ................ 1000 (sum of value) Note: I add the table field directly to the report, i am not added store procedure or views or

Rounding numbers in Crystal report

烈酒焚心 提交于 2019-12-31 03:14:09
问题 I have database table which i want to generate a Crystal report for it just to show the numbers as it is e.g i have 11.7 i want it to remain like 11.7 while it round to 12. I don't want this rounding . please help! 回答1: It is very simple, just select the field to which you want to show two decimal places. Right click on the field go to format field-->go to number tab -->click on customize-->then in Decimal select "1.0". http://www.crystalreportsbook.com/Forum/forum_posts.asp?TID=9338 Second