crystal-reports

Why the crystal report not appear and no show?

一曲冷凌霜 提交于 2019-12-23 03:31:47
问题 I created a crystal report and webpage , I want to open crystal report in my webpage depends on the textbox value and i need when click the button i send the values to crystal reports to show my crystal report . I tried the following code , and I set the data source and connection to database : protected void Button1_Click(object sender, EventArgs e) { rdoc.Load(Server.MapPath("~/RPT/RPT_CASH_RESULT.rpt")); SqlCommand cmd = new SqlCommand("GET_ORDER_RESULT_PRINT_CASH", cn); cmd.CommandType =

How I get all Month From Date form sql?

回眸只為那壹抹淺笑 提交于 2019-12-23 03:23:02
问题 I have table names 'payroll' with following data month , pay January , 1200 March , 1500 December , 2000 I want the following result in crystal report from stored procedure i want a SQL query that Display this result Janury , 1200 February , 000 March , 1500 April , 000 May , 000 June , 000 July , 000 August , 000 September , 000 October , 000 November , 000 December , 2000 Please help to make the query. Thanks in advance 回答1: You can create another table with all 12 months in it. Then

How I get all Month From Date form sql?

僤鯓⒐⒋嵵緔 提交于 2019-12-23 03:22:30
问题 I have table names 'payroll' with following data month , pay January , 1200 March , 1500 December , 2000 I want the following result in crystal report from stored procedure i want a SQL query that Display this result Janury , 1200 February , 000 March , 1500 April , 000 May , 000 June , 000 July , 000 August , 000 September , 000 October , 000 November , 000 December , 2000 Please help to make the query. Thanks in advance 回答1: You can create another table with all 12 months in it. Then

How to set MAXIMUM number of record in DETAIL SECTION in crystal report?

馋奶兔 提交于 2019-12-23 03:04:25
问题 How to set MAXIMUM number of record in DETAIL SECTION in crystal report I am making Report which has Pre-Printed Format. Which allows Six Lines of row to be PRINTED. So in report if i get More then Six row in detail Section then it should be set on next page of report. Now say i get 8 rows in detail section then First Page with Six rows should be set & remaining 2 rows should be set on second page & 6 rows blank space should be automatically added in second pages detail section. I have tried

How to set MAXIMUM number of record in DETAIL SECTION in crystal report?

岁酱吖の 提交于 2019-12-23 03:03:34
问题 How to set MAXIMUM number of record in DETAIL SECTION in crystal report I am making Report which has Pre-Printed Format. Which allows Six Lines of row to be PRINTED. So in report if i get More then Six row in detail Section then it should be set on next page of report. Now say i get 8 rows in detail section then First Page with Six rows should be set & remaining 2 rows should be set on second page & 6 rows blank space should be automatically added in second pages detail section. I have tried

Enter a Carriage Return in a Crystal Reports Parameter Field

杀马特。学长 韩版系。学妹 提交于 2019-12-23 02:58:09
问题 I'm trying to use a parameter field as a notes box for a report, where when you run it, you can freely enter notes into the parameter and it will display as a text box on the form. However, I've found you cannot enter a Carriage Return(new line). Anyone know a way to enter a new line in a parameter for crystal? 回答1: I don't think Crystal can handle multi-line parameters. You could use multiple parameters, one for each line, or use a printable character like # as a placeholder in the text, and

Unknown Database Connector Error in Crystal Reports

我的未来我决定 提交于 2019-12-23 02:57:24
问题 Ok, I am probably just shooting air with this question.. but I have no idea what's happening and I have been banging my head against it for the last couple days. I have a crystal report version 12.2.0.290... I built this report against an Oracle connection string (not ODBC as it was giving me errors to use a stored procedure as a data source). Anyway, so the report was connecting to the database fine.. and I was able to build the entire report.. refreshing data with every change I made etc..

How does whileprintingrecords in Crystal Reports translate to SQL

倖福魔咒の 提交于 2019-12-23 02:42:48
问题 I'm looking for the value of Group1total in a Crystal Report. My background is more centered around SQL and I'm trying to determine the logic behind the following: //{@Group1total} whileprintingrecords; numbervar group1cost //{@Group1cost} whileprintingrecords; numbervar group1cost := group1cost + {@group2total} //{@Group2total} whileprintingrecords; numbervar group2cost //{@Group2cost} whileprintingrecords; numbervar group2cost := group2cost + {@group3total} //{@Group3total}

Getting “Database Logon Error” in Crystal Report While Navigating Next Page

二次信任 提交于 2019-12-23 02:19:09
问题 I have Developed Below Code for Crystal Report in ASP.NET and C# (Dataset), I have Multiple Pages in report i am getting 1st page Properly but while Navigating next page i am getting logon error. public partial class WSDayBookReport : System.Web.UI.Page { SQLClass sqlfunc = new SQLClass(); DayBookDataSet dset = new DayBookDataSet(); ReportDocument rdoc; } protected void Page_Load(object sender, EventArgs e) { } protected void Page_Unload(object sender, EventArgs e) { try { rdoc.Close(); rdoc

Change Crystal Reports object visibility programmatically

荒凉一梦 提交于 2019-12-22 20:43:04
问题 I have a C# 2010 application which contains reports created with Crystal Reports for VS2010. For one of the reports, there is the option to print the report or e-mail it to someone [export and send via SMTP]. I want the watermark to be shown when viewing the report and also when e-mailing it. I do not want it to be shown when it is printed since it will be printed on watermarked page. I would like to know how I can change the watermark visibility in the form which contains the