crystal-reports

Conditional group SUM in Crystal Reports

余生长醉 提交于 2019-12-30 22:52:42
问题 I've been doing some accounting reports and have been summing up my different currencies using a formula IE CanadianCommissionFormula if {myData;1.CurrencyType} = "CDN" then {myData;1.Commission} else 0 CanadianCommissionSum SUM({@CanadianCommissionFormula}) Then I'd just display the CanadianCommissionSum at the bottom of the report and things were great. I've just come across the requirement to do this, but grouped by Sales Rep. I tried using my previous formula, but this sums for the whole

Conditional group SUM in Crystal Reports

假如想象 提交于 2019-12-30 22:52:13
问题 I've been doing some accounting reports and have been summing up my different currencies using a formula IE CanadianCommissionFormula if {myData;1.CurrencyType} = "CDN" then {myData;1.Commission} else 0 CanadianCommissionSum SUM({@CanadianCommissionFormula}) Then I'd just display the CanadianCommissionSum at the bottom of the report and things were great. I've just come across the requirement to do this, but grouped by Sales Rep. I tried using my previous formula, but this sums for the whole

Crystal report (or SSRS) flowing text around image

爷,独闯天下 提交于 2019-12-30 18:28:14
问题 I want to have this layout in Crystal Reports: How can I do this? If it cant be done in CR or SSRS, is there any other alternatives? 回答1: I don't believe this can be done with Crystal Reports. I'm not as familiar with SSRS, but after looking through the field options I don't believe it can be done with it either. In general field locations are set static in reporting solutions. I think this would be best done with html/css or even XSL. I don't know the scope of the issue, but I'd assume that

Advanced conversion of a single number to year, along with hyphen

早过忘川 提交于 2019-12-30 14:50:47
问题 I want to convert the string value to datetime in crystal report date format are 05-10-7-AAAA (mm-dd-year(2017)-AAAA) 05-23-3-00 (mm-dd-year(2013)-00) ... My desired output is 10-May-2017 23-May-2013 ... My good reference has been How to convert string value to proper datetime format & the following attempts threw me errors: Date({ORDERCHECKVIEW.LOTNUMBER}[4 to 5], ***{ORDERCHECKVIEW.LOTNUMBER}[1 to 2], {ORDERCHECKVIEW.LOTNUMBER}[7]***) //Too many arguments have been given to this function &

How to create a .NET setup project with crystal report prerequisite?

旧城冷巷雨未停 提交于 2019-12-30 14:41:53
问题 I have worked on a desktop application in .net and it uses crystal report for generating report in pdf/ms word. However, I am now trying to deploying this app with visual studio setup project. Now, finding a way to bundle the crystal report assemblies in some way so that they can also install automatically on a pc where crystal report isn't installed. How can I achieve this please? Regards 回答1: There is a folder called Microsoft Visual Studio 9.0\Crystal Reports\CRRedist\IA64 in your Programs

Looping through a multiple value parameter array

三世轮回 提交于 2019-12-30 09:32:20
问题 I have a parameter that allows multiple values. Its for a name field in my database. What I want to be able to do is allow the user to put in a name and then have crystal find any name like any of the names they entered. So for example you could put in 4 last names and crystal would return anyone who had any of those names in the name field. I can get the "like" to work just fine, but only when there is one string in the array. Here is my select formula: numbervar counter := 1; numbervar

CrystalReports ReportDocument memory leak with database connections

偶尔善良 提交于 2019-12-30 08:30:11
问题 I've spent the past few days looking into that and I can't seem to figure it out. I have a c# WinForms application that uses the ReportDocument to load a report and put it into the Crystal Report Viewer, so that the user can preview it. The purpose is to preview different statistics and the form is never closed. There's a timer that runs and loads different reports into the viewer. While that happens the memory usage and handles (I can see them in the task manager) keep increasing. When the

How to split a string and make an array of integers in crystal report

可紊 提交于 2019-12-30 06:47:38
问题 I have a string with set of employee IDs separated by an _(Underscore). What i want to do is to split that into separate strings and convert them to integers and save them in an integer array. Is this possible in Crystal Reports? Is it possible to convert string into integer/number in Crystal Report? I have tried using split function but still couldn't figure out how to use it to create an array. I am very new to crystal report it would be a great help if you could help me out. 回答1: //create

How to insert dynamically images in Crystal Reports

孤街浪徒 提交于 2019-12-30 06:37:45
问题 I am developing a WinForms App which can generate a report of my college students. I am using Crystal Reports but I don't know how to retrieve student photos from the file system. Student photos are stored on the file system and use this naming convention: C:\Id Maker\"Clgid".jpg Where Clgid is a value stored in a database. As an example my Clgid is 2009UCS020 which links to my photo on the file system as C:\Id Maker\2009UCS020.jpg I am struggling on how I can lookup the database value of

How to insert dynamically images in Crystal Reports

為{幸葍}努か 提交于 2019-12-30 06:36:14
问题 I am developing a WinForms App which can generate a report of my college students. I am using Crystal Reports but I don't know how to retrieve student photos from the file system. Student photos are stored on the file system and use this naming convention: C:\Id Maker\"Clgid".jpg Where Clgid is a value stored in a database. As an example my Clgid is 2009UCS020 which links to my photo on the file system as C:\Id Maker\2009UCS020.jpg I am struggling on how I can lookup the database value of