crystal-reports

change sql parameter to date decimal

北战南征 提交于 2020-01-25 06:26:26
问题 I have a SQL command in crystal reports (its OK if your not familiar with crystal) and I need to convert a date parameter to a decimal (to match a column in the database.) SELECT decimaldate FROM TABLE1 WHERE decimaldate = {?normaldate} --ex: 12/01/2011 needs to become 12012011 IF I use a CAST on the above query it doesn't work: SELECT decimaldate FROM TABLE1 WHERE decimaldate = CAST(CAST{?normaldate} AS VARCHAR) AS DECIMAL) 回答1: Try something like this. select CAST(replace(convert(varchar,

Convert string to date in Crystal Reports

流过昼夜 提交于 2020-01-25 05:42:05
问题 I need to convert a string value to a date in a crystal report. As you know Crystal has a handy "in the period of" in the select expert. However I am unable to use it without converting. The string is only four characters (example: 0512) I am having trouble using the date value function since there is no day or a full value for the year. Any help would be appreciated! 回答1: Just manipulate the string into the proper format and use the CDate function. It doesn't look like the day number matters

Sending fax with .NET

随声附和 提交于 2020-01-25 02:59:09
问题 I'm trying to send faxes with a .NET (C#) program using Crystal Reports and Unimessage Pro (or any other fax program). My problem is that Unimessage Pro (and other fax programs) uses printer fonts for the fax commands. Since .NET doesn't support printer fonts the fax commands in the report are converted to Courier New. The result of this is that the fax program doesn't recognize the fax commands but sees them as plain text and the fax isn't sent. How do I send a fax with Crystal Reports and

Crystal Reports and VS2010

a 夏天 提交于 2020-01-23 22:20:19
问题 We have Crystal Reports running and it is tied into our VS2010 installation. I have not looked at the instance in a long time because we had a devoted Crystal developer on board, however he is gone now and I need to make a few changes. When I try to open up the .rpt file in VS2010 all I get is garbage, not the Crystal Report with the GUI. What do I need to configure/install to get to see this inside VS2010? EDIT: When I go to my .rpt file to edit it with Crystal Reports, I get a white screen

How to summarize a formula field in crystal reports?

六月ゝ 毕业季﹏ 提交于 2020-01-23 09:52:57
问题 How do I add a running total or summary field on a formula field in crystal reports? // Sample Report Serial No. Premium Commission Net (Premium-Commission) ----------------------------------------------------------------------------- 1. 10 4 6 2. 40 30 10 --------------------------------------------------------------------------- Grand Total 50 34 16 In sample report, Net (Premium-Commission) is a formula field which gets evaluated for each row? How do I add a grand total/summary field for

How to summarize a formula field in crystal reports?

元气小坏坏 提交于 2020-01-23 09:52:28
问题 How do I add a running total or summary field on a formula field in crystal reports? // Sample Report Serial No. Premium Commission Net (Premium-Commission) ----------------------------------------------------------------------------- 1. 10 4 6 2. 40 30 10 --------------------------------------------------------------------------- Grand Total 50 34 16 In sample report, Net (Premium-Commission) is a formula field which gets evaluated for each row? How do I add a grand total/summary field for

Can I modify the Request.Headers collection?

主宰稳场 提交于 2020-01-22 21:00:12
问题 I have an ASP.NET site that uses a third-party reporting component. This component is misbehaving by throwing a NullReferenceException whenever the client browser is not specifying a User-Agent in the request headers. It's basically an odd scenario that I'm just trying to come up with a workaround for. I do not know who/what client is not specifying a User-Agent, which seems like bad form IMO, but we have to deal with the exceptions it is generating. I have logged a support ticket with the

How to dynamically change crystal report database connection

▼魔方 西西 提交于 2020-01-22 15:11:23
问题 I am new with crystal reports. I tried to to implement the crystal report in my win form c# application using report wizard visual studio 2012, so don't know what happen's in backhand for this. Everything works good on my computer but when i tried install this on another computer connection string changes and gives error. I tried many links like Dynamic Connection string Change but as i am using report wizard for setup so don't know where to use this. I also tried all options in report wizard

How to dynamically change crystal report database connection

随声附和 提交于 2020-01-22 15:09:57
问题 I am new with crystal reports. I tried to to implement the crystal report in my win form c# application using report wizard visual studio 2012, so don't know what happen's in backhand for this. Everything works good on my computer but when i tried install this on another computer connection string changes and gives error. I tried many links like Dynamic Connection string Change but as i am using report wizard for setup so don't know where to use this. I also tried all options in report wizard

problem when i try printing sales invoice

◇◆丶佛笑我妖孽 提交于 2020-01-22 02:32:18
问题 private void button1_Click(object sender, EventArgs e) { hesham2020Entities2 db = new hesham2020Entities2(); string u; u = textBox1.Text.Trim(); var y = from v in db.inv_detail from s in db.invoice_head where s.invno==u select new {v.unit,v.qty,v.p_no,v.description,v.price,v.tot_price,s.invno,s.customer_id,s.inv_dat,s.po_no,s.total,s.currency}; CrystalReport6 crt = new CrystalReport6(); crt.SetDataSource(y); crv9.Refresh(); crt.SetParameterValue(0, comboBox2.SelectedItem); crt