crystal-reports

Crystal Reports 2008 - Problem with Parameter Type

試著忘記壹切 提交于 2020-01-06 07:12:19
问题 I have a Crystal 2008 report hitting a SQL Server 2008 database using a stored procedure. The stored procedure takes a parameter of type Date (new to SQL Server 2008). When Crystal automatically creates the parameter for me in the report, it makes the parameter a type of String. I don't want a type of String because then the user is required to type in a date and doesn't see the Crystal date dialog that he/she would see if the parameter type is Date. The problem is that Crystal is not

Print Dialog Does not show up in Crystal Report Viewer … giving error

我是研究僧i 提交于 2020-01-06 07:03:00
问题 WE developed system integrated with crystal Reports, with Crystal Report viewer on page. but the problem is we hosted it on 32 bit server but when access it and try to print the report it gives the error and does show any dialogue. we have installed full crystal report version with License but error is there. I tried to find but no success, one person said on net that if Crystal Report viewer is in updatePanel, but in my case is not there is no updatepanel on this page even. thanks in advance

I got the problem in Crystal Report- Error Messsage:Load report failed

蓝咒 提交于 2020-01-06 06:57:32
问题 I got the problem in Crystal Report- Error Messsage:Load report failed. how to solve this issue??. 回答1: If your report is running for awhile and then falls over make sure you Dispose it....... if(myReport != null) { myReport .Close(); myReport .Dispose(); } 回答2: You can call show data on report in DataBinding and Navigate methods. protected void CrystalReportViewer1_DataBinding(object sender, EventArgs e) { this.ShowReportData(); } protected void CrystalReportViewer1_Navigate(object source,

How to Get Total Page Count for a Report Using CrystalReportViewer?

给你一囗甜甜゛ 提交于 2020-01-06 06:50:13
问题 I am using Crystal Report 2008 with C# , have a WinForm and want to show Page N of M to user in a Label . How can I impelemnt that? I searched and couldn't find any straightforward answer. NOTICE : I used a CrystalReportViewer1 and CRGeneral.rpt 回答1: this way works well But i think I can Find better solution: viewer.ShowLastPage(); string TotalPage = viewer.GetCurrentPageNumber().ToString(); viewer.ShowFirstPage(); pageNo.Text = viewer.GetCurrentPageNumber() + " of " + TotalPage; Any Better

Crystal Report viewer built in Export button problem

旧街凉风 提交于 2020-01-06 05:46:04
问题 I am using VS 2010, Web application with .net 4, I downloaded Crystal report from the website that Microsoft suggests. I added a crystal report to my web page, dragged a CrystalReportViewer, and a button. I put in the button_click the following code: ReportDocument cryRpt; cryRpt = new ReportDocument(); cryRpt.Load("C:\\Users\\Yazan\\Documents\\Visual Studio 2010\\WebSites\\WebSite17\\CrystalReport.rpt"); CrystalReportViewer1.ReportSource = cryRpt; CrystalReportViewer1.RefreshReport(); So it

Report works on development PC but throws exception on the PC where it's deployed (CrystalDecisions.CrystalReports.Engine.ReportDocument)

て烟熏妆下的殇ゞ 提交于 2020-01-06 04:47:06
问题 I developed an application with Crystal Reports, when i test the project on the development PC it works, but it gives an exception on the customer PC The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. also the project was developed Using VS 2010 then it completed with VS 2008,so I am developing using VS 2008 now, I'm not sure if this Could Cause the problem, and about the Setup Project i make a reference to the following DLLs:

Keeping same number of columns at cross tab report

六月ゝ 毕业季﹏ 提交于 2020-01-05 10:30:21
问题 I have a cross-tab report which similar to this Problem is when there are no data to one month that column won't appear in the report. I would like to keep the same number of column even there are empty values for the row data. Is it possible to achieve in cross-tab reports?? Thanks 回答1: This is a problem more with the underlying dataset. You have two options: Modify your query to always return data even for "empty" groups Hardcode the columns into the cross-tab Option 1 is probably the best

Crystal Reports -Invalid Argument provided. Failed to open a rowset. ADO.Net xml

为君一笑 提交于 2020-01-05 10:04:15
问题 Okay here is the scenario I have a VB6 application that is getting re-written for asp.net 3.5. I have a grundle of Crystal Reports that are getting updated to Crystal Reports 10.5 (which is included in Visual Studio 2008). All of the old reports used OLEDB. What I am doing is taking the sql statements used in the reports and putting them in the database. I next run an automated process to create a Dataset from those select statements and I serialize the DataSet and save the schema and data as

webservice as datasource in vs 2008 crystal report

烈酒焚心 提交于 2020-01-05 07:58:08
问题 How to use webservice as a data source in VS2008 crystal report? 回答1: Crystal reports can take xml as its data by setting the database drivers to ADO and the database to the location of your xml producing webservice (it takes a URL) - its as simple as that! My original route was more convoluted that I thought; when you create the report there is an option in the "Database Expert" called "XML and Web Services" which gives you an option to use an HTTP(S) data source - that should be your

Change the definition of a 'Week'?

南笙酒味 提交于 2020-01-05 07:31:00
问题 I'm generating an overtime report, and while Crystal Reports can group an employee's shifts into weeks, it uses a standard Sunday-Saturday week; I need a Monday-Sunday week(ie, Sept 12-18th inclusive). Is there any way to change this setting, or am I stuck with writing a complex formula? 回答1: I don't know of a setting that will allow you to do this, but the group formula is not too bad. The following will give you the week number/index in the year using Mondays as the start of the week.