crystal-reports

HowTo Bind Crystal Reports to Entity Framework?

无人久伴 提交于 2019-12-22 05:17:17
问题 How can one bind Crystal Reports to Entity Framework Entities? I did find no workaround yet. (And I have not enough points yet to vote on existing questions) 回答1: As for me, I read below link http://aspalliance.com/2049_Use_LINQ_to_Retrieve_Data_for_Your_Crystal_Reports.2 It tell me how to link EntityFramework and Crystal Report. As for code behind .... protected void Page_Load(object sender, EventArgs e) { Report.CrystalReport1 _Rpt = new Report.CrystalReport1(); List<Test> list_Test = new

Crystal Report Viewer not showing Images

浪尽此生 提交于 2019-12-22 05:14:09
问题 I am using Crystal Report v9x. In the data which is displayed in Crystal Report Viewer having the images. When i am trying to show the reports in the Crystal Report viewer, Images are not showing up. Can any one give me some idea what to do? 回答1: Have you tried looking in your Web.config for the CrystalImageHandler (in httpHandlers section)? I had to add a line to get my embedded images to show up: <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler,

Replace a database connection for report and all subreports

白昼怎懂夜的黑 提交于 2019-12-22 04:43:29
问题 Is there is any way to change the datasource location for a report and all of it's subreports without having to open each of them manually? 回答1: Here is how I set my connections at runtime. I get the connection info from a config location. #'SET REPORT CONNECTION INFO For i = 0 To rsource.ReportDocument.DataSourceConnections.Count - 1 rsource.ReportDocument.DataSourceConnections(i).SetConnection(crystalServer, crystalDB, crystalUser, crystalPassword) Next For i = 0 To rsource.ReportDocument

Convert string to number field

心不动则不痛 提交于 2019-12-22 04:05:55
问题 I have a Database field whose datatype is String in Crystal Reports. How can I convert it to a number value? 回答1: Within Crystal, you can do it by creating a formula that uses the ToNumber function. It might be a good idea to code for the possibility that the field might include non-numeric data - like so: If NumericText ({field}) then ToNumber ({field}) else 0 Alternatively, you might find it easier to convert the field's datatype within the query used in the report. 来源: https:/

How to remove comma from crystal report string and from integer field

杀马特。学长 韩版系。学妹 提交于 2019-12-22 03:51:10
问题 How can I remove the comma (,) from crystal report fields? I have a field name "year" which is having a value of 2012 , but when I show that value in crystal report it includes a comma, becoming 2,012 . How can I show only 2012 ? 回答1: In the crystal report designer view: Right mouse click on that field, and select Format object . Select Custom Style in the Style list, and click Customize . Untick Thousands Separator , and any other unwanted formatting. Failing that, you could try selecting

Unable to cast COM object of type 'CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass'

蓝咒 提交于 2019-12-22 03:23:09
问题 I have 2 windows program. Program A : create with visual studio 2015 with crystal report SP18 Program B : create with visual studio 2017 with crystal report SP22 I have a computer with crystal report runtime SP 18. I run program A in that computer. Program A can create report. I run program B in that computer. Program B cannot create report. So, i upgrade the crystal report runtime to SP22. The result is Program B can create report. Now the problem is Program A cannot create report after the

How to view multipe reports in 1 crystal reports viewer?

点点圈 提交于 2019-12-22 01:23:35
问题 How can I open 2 seperate reports in 1 crystal reports viewer at a single time? And when previewing the report, I see that my subreport doesn't filled its parent control width, how to Subreport width fill its parent width? I use crystal reports for visual studio 2010. 回答1: As far as I know you can't have multiple reports show in the same viewer as the report gets bound to the viewer. Now there are some ways of getting around that and making it look like you have multiple reports showing in

Issue related to vertical line in Crystal Reports

若如初见. 提交于 2019-12-22 00:22:38
问题 I have Crystal Report in VS 2008. The report has group header section above the detail section and group like display in image below: I have drawn vertical image in detail section but it displays like in following Image: I also tried to scratched vertical line below the detail section but it in output line goes out of the box like in following Image How can i solve this issue? 回答1: In VS2008 open this report. Select the line and go to Properties Window . There you can reduce the value of

Crystal report with HTML content formatting

非 Y 不嫁゛ 提交于 2019-12-21 21:32:49
问题 Is anybody of you worked on HTML data populating into crystal reports? Am using Visual studio 2010. I had an XML data coming from DB. Which am able to convert into HTML using XSL. Now my next task is to get it into crystal report. Any hint will be greatful. Because all the online resources are simply giving me results related to creating dataset and executing stored procedures etc. I was able to pull my HTML content to crystal report. Now the embedded styling was not able to get applied. Any

In Crystal Reports, How do I count all the rows in the Details section and place that count in the header?

北慕城南 提交于 2019-12-21 20:26:05
问题 I've tried adding a new formula and used this code: whileprintingrecords; numbervar x; x := x + 1; Problem is, if I place the formula that displays the count on the header section, it only shows the first value since it hasn't yet incremented. I need a total count of the rows in every page and just show it in the header. how do I do this? Wait I just realized it is placed in a group not in the details section. Let me revise my question. How do I get the value of the display formula in the