crystal-reports

Set Data Source to datatable that only exists in dataset.. not an actual table in database

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 02:38:09
问题 I created a datatable in my dataset (.xsd file) which I fill in code behind. This datatable doesn't correspond to an actual table in sql. When I set this datatable as the data source in crystal I get database logon error. As a work around I actually create this table in sql for the crystal to work. Is there a way of doing this without the above work around? 回答1: If the message is "database logon failed", you can try: 1) Open the RPT file and use the command "Verify Database". Redeploy and

Set Data Source to datatable that only exists in dataset.. not an actual table in database

大憨熊 提交于 2019-12-25 02:38:02
问题 I created a datatable in my dataset (.xsd file) which I fill in code behind. This datatable doesn't correspond to an actual table in sql. When I set this datatable as the data source in crystal I get database logon error. As a work around I actually create this table in sql for the crystal to work. Is there a way of doing this without the above work around? 回答1: If the message is "database logon failed", you can try: 1) Open the RPT file and use the command "Verify Database". Redeploy and

how to dislay two tables in crystal report?

拥有回忆 提交于 2019-12-25 02:33:08
问题 i'm stuck in displaying the fields two tables in crystal reports. i'm trying to code it manually but this code wont work. it works only one table to display i think. here is my code: ''''''''''''''''connection to database'''''''''''''''''''''''''''''''''' connectionsrvr = New MySqlConnection("server=localhost;userid=root;password=;database=ticketing_system;") connectionsrvr.Open() If connectionsrvr.State = ConnectionState.Closed Then MsgBox("Cannot connect to server") End If '''''''''''''''''

Select/Case in Crystal Reports

邮差的信 提交于 2019-12-25 01:34:47
问题 I'm trying to have crystal reports run through a Select statement however I keeps on dropping out after hitting the first match instead of continuing on through each case. How can I get it to evaluate each condition on it's own merits instead of it automaticaly breaking after finding the first match? Example local numbervar varNumber := 0; Select 7 case is <= 1: varNumber := varNumber + 1 //Only gets to here case is <= 2: varNumber := varNumber + 1 case is <= 3: varNumber := varNumber + 1

Silverlight 5 printing garbled Reports

可紊 提交于 2019-12-25 01:34:38
问题 I am using a C1ReportViewer control, and have already posted a question on the C1 forums, however i thought i would post here as well to see if anyone had run across a similar issue. The control uses the generic silverlight PrintDocument() method. When printing a Crystal Report from this control in Silverlight 5 sometimes the report prints out garbled, meaning different sized text, tapered lines and generally out of position. It also rarely prints the entire report. I have narrowed the issue

How to fill in data from dataset to crystal report?

泪湿孤枕 提交于 2019-12-25 00:42:55
问题 I create a blank crystal report then use the following code, there is nothing to see after running. is it need to add field object into crytsl report corresponding to the field in data set. But i do not know how to add in this situation which is not connected through crystal report. try { string _connectionString = ConfigurationManager.ConnectionStrings["CarParkConnectionString"].ConnectionString; OleDbConnection connection = null; try { using (connection = new OleDbConnection(

Crystal Report create strange PDF format on server

烂漫一生 提交于 2019-12-25 00:24:31
问题 I am trying to export a crystal report into PDF format using the below code. Report.ExportToDisk(ExportFormatType.PortableDocFormat, _ System.AppDomain.CurrentDomain.BaseDirectory() & sPDF_FileName) The format of the PDF is normal, like an A4 size on local host , but when creating the file on server, the format is entirely different. The report or the page is sliced into small pieces and a single page is converted into multiple pages. I appreciate your help. Thank you. 来源: https:/

Grand Total Cross Tab rows alongwith columns?

时光总嘲笑我的痴心妄想 提交于 2019-12-25 00:09:11
问题 I want to total a cross tab report like GroupName Items Item% 1stStock 2ndStock ------ nStock --------- ----- ------ -------- -------- ------- Fruits Apples 5 100 100 500 Tomatoes 10 200 50 200 Mangoes 10 300 50 100 ------------------------------------------------------------ Total 25% 600 200 800 ------------------------------------------------------------ Vegetables Carrots 40 10 20 --------- 20 ------------------------------------------------------------ Total 40% 10 20 --------- 20 ------

passing date range parameters from a vb.net windows application

点点圈 提交于 2019-12-25 00:05:39
问题 I need to pass date range parameters to a crystal report from a vb.net application, but I don't know how to. For anyone who may want to help me, please base yourself on the following scenario: I have a crystal report that pulls data from an oracle database. In the database, I have a table of students, and each record has a birth date, name and surname. I need to display on the report only records where the birth date is between date X and date Y inclusive of both. Date X and Date Y are dates

How to change crystal report section width

心已入冬 提交于 2019-12-24 23:59:49
问题 I need to change the width of the sections in the report. Is there a way to change the width of the section in the report? 回答1: In Crystal Reports, right click the gutter and choose 'Show Short Section Names'. You may also choose File | Options and check 'short section names'. 来源: https://stackoverflow.com/questions/8410346/how-to-change-crystal-report-section-width