crystal-reports-2010

load images in Crystal Reports

微笑、不失礼 提交于 2019-12-13 03:56:08
问题 please describe How to add picture at run time in the crystal report using C# private void LoadImage(DataRow objDataRow, string strImageField, string FilePath) { FileStream fs = new FileStream(FilePath, System.IO.FileMode.Open, System.IO.FileAccess.Read); } 回答1: use crystalrepoert.setdatasource(datatable) to load pictures in crystal report file, the image column of datatable apeears in report. also you can you use runtime dataset like this: http://www.c-sharpcorner.com/UploadFile/saj

Oracle TO_DATE function issue in Crystal Report for VS2010

时光总嘲笑我的痴心妄想 提交于 2019-12-12 05:57:08
问题 I am having problem running following query in Crystal Report VS2010 command text. It runs fine in Oracle 10g. SELECT * FROM tbl_ts WHERE PROJECTCODE = 2274 AND LOGDATE >= TO_DATE('01/08/2011','dd/mm/yyyy') AND LOGDATE <= TO_DATE('31/08/2011','dd/mm/yyyy') I have tried using BETWEEN function but i am getting this same error message: I think its something to do with TO_DATE function? 回答1: I'm gonna make a guess here and assert that the error arises because the date format you specified in your

Getting null fields in crystal reports

穿精又带淫゛_ 提交于 2019-12-12 01:31:27
问题 I have a customer name with first name, last name, middle name. I want to concatenate these fields. When I concatenate these fields I am getting some of the fields as null cause as it contains at least one null value field. I have tried with this formula. {FIRST_NAME}&","&{MIDDLE_NAME}&","&{LAST_NAME} Ex: I have first name, last name but middle name is null then I am getting entire field as null. Please help me how to resolve this. 回答1: You'll probably want to wrap each field with a formula

Handling Optional Parameters when running Crystal Reports 2011 report from C#

淺唱寂寞╮ 提交于 2019-12-11 06:58:50
问题 I'm writing a custom scheduling tool in C# using VS 2010, to execute and export a number of Crystal Reports 2011 rpt files. Currently these reports are executed manually from within CR Developer, and some the reports have optional parameters, which can be left blank at runtime, and these are handled with the CR "HasValue()" function in the record selection formulas within the reports. I have developed a prototype application to execute and export one of these reports, and can pass in

Subtracting values from groups

穿精又带淫゛_ 提交于 2019-12-11 06:27:29
问题 I have a group having 2 different dates. The result that it outputs is like this: PeriodID-----GroupName-----Value 16-----FUEL-----200 15-----FUEL-----800 Now I want to subtract 200 from 800. and desired result is 600 How Do I subtract these values from same group? any idea? 回答1: This should work. Create a formula and write below code. Evaluateafter(firstproduct<Formula>); Evaluateafter(Secondproduct<Formula>); sum(<Product1>,<Dategrouping>)-sum(<Product2>,<Dategrouping>) now you have the end

Crystal Reports load reportDocument failed

走远了吗. 提交于 2019-12-11 06:06:12
问题 I use crystal reports on vs 2010 c#, and i create pdf files using rpt documents of CR. I put this code on windows service,my code works normally for 30 - 40 times but then memory is rising per +5 +7 each progress. Last i get error like this: load file is failed ! My code: (i think i dispose/close conn but how) private void ReportLogin(ReportDocument crDoc, string Database, string Server, string UserID, string Password) { try { crConnectionInfo = new ConnectionInfo(); crConnectionInfo

How can i add 2 summarized field in Cross-tab Crystal Report

给你一囗甜甜゛ 提交于 2019-12-11 02:44:29
问题 I create report using cross tab in crystal report, I have columns as picture below. I want, 2 of summarized column (Qty and Sales) and added 2 of summarized field in cross-tab expert. But it's still not work. If I want to assign value from #4 to #3. 回答1: Crosstab expert - Customize style - Summarized fields - choose Horizontal, check Show Lables. At least in my older CR (9.0) this works. If this doesn't andswer your question then sorry - your question is somewhat badly worded. 来源: https:/

version of .net framework launch not match .net framework bootstrapper project

微笑、不失礼 提交于 2019-12-10 01:59:20
问题 When I build the release project of the vb.net 2010 I just started using, I get two warnings: the version of the .net framedwork launch condition does not match the selected .net framework bootstrapper package. Update the .net framewk launch condition to match the version of the .netfrk selected in the prerequisites dialog box. The target version of the .net framework in the project does not match the .net framework launch condition version .net framework 4 client profile. Update the version

Invalid TLV record when executing crystal reports in c#

穿精又带淫゛_ 提交于 2019-12-07 15:58:44
问题 I am creating a C# program where it will display a report that was created using a crystal report. I'm already done with the report. But then, when I tried to view the report in C# it prompted me an error which is " INVALID TLV RECORD ". What might be the reason for this? Please help. Thanks. Code: private void reportViewer1_Load(object sender, EventArgs e) { CRAXDRT.Report rpt = new CRAXDRT.Report(); CRAXDRT.Application app = new CRAXDRT.Application(); rpt = app.OpenReport(Application

Crystal report if then help, how to return a string or variable with formula

自闭症网瘾萝莉.ら 提交于 2019-12-07 12:10:59
问题 Relatively new to crystal and I've hit a bit of a snag with a formula. I'm trying to create a formula that will report out when an RMA was received and how many. If none of the items have been received, I want it to show a message stating such, but if items from the RMA have been received I want it to return the receipt number. Since a picture is worth a thousands words... Current report view I tried using an if then but I don't think you can combine strings with BAQReportResult values. if