crystal-reports

Print on continuous paper using c#

梦想与她 提交于 2019-12-18 07:46:36
问题 I write a one POS system. I want to print on continuous paper but I don't figure out how I can accomplish this. I use the .net (C#). I try with crystal report as well as System.drawing classes. Any idea will be helpful for me... 回答1: If you're using a C# PrintDocument to generate your print job, could you just initialize the paper size to what you need for header/footer then increment the PageHeight property before you draw a new line? printdoc.DefaultPageSettings.PaperSize.Height +=

Crystal reports suppressed section still leaves blank spot

血红的双手。 提交于 2019-12-18 05:57:35
问题 I have a Section that only contains a SubReport. I have a formula on "suppress (no drill down)" that hides the subreport. This works. However it leaves a big blank white space where the subreport would have been if it was visible. I have ticked "Suppress Blank Section" and unticked "Keep Together" on the surrounding sections without any effect. How do I change it so my hidden/suppressed section does not display any empty white-space? I am using Crystal Reports 11. UPDATE It may not be the

Crystal reports, why is it asking for database login even after I provided the details?

房东的猫 提交于 2019-12-18 05:10:44
问题 I am generating a report, but the problem is even though I've supplied credentials, when the form containing the CrystalReport opens up, it still asks me for them, and the worst part is, I don't enter any thing in there, and just click finish, and it loads the report. So, if there is no need for credentials (or whatever) why is it asking me? Here's the code private void MainReport_Load(object sender, EventArgs e) { var constr = string.Empty; constr = Application.StartupPath; if (Generate

.NET ClickOnce not installing prerequisite files?

家住魔仙堡 提交于 2019-12-18 04:12:14
问题 I have a .NET project that uses Crystal Reports. The application is distributed using ClickOnce. Things work great if the user has Crystal installed on their computer. However, not all of the end users have Crystal Reports installed on their computers. These users are receiving the following error... "Unable to install or run the application. The application requires that assembly CrystalDecisions.ReportAppServer.XmlSerialize Version 10.5.3700.0 be installed in the Global Assembly Cache (GAC)

Crystal Reports - Adding a parameter to a 'Command' query

流过昼夜 提交于 2019-12-18 03:41:31
问题 Crystal Version - Crystal Reports 2008 Business Objects - XI I have written a query to populate a subreport and want to pull in a parameter to that query based on input from a user. My question is, what is the correct syntax I need to put in the first line of the 'Where' clause to accept the parameter? Here is the query I am using in Crystal Reports: Select Projecttname, ReleaseDate, TaskName From DB_Table Where (Project_Name like {?Pm-?Proj_Name})) and (ReleaseDate) >= currentdate 回答1: When

Crystal Reports - Adding a parameter to a 'Command' query

半城伤御伤魂 提交于 2019-12-18 03:41:04
问题 Crystal Version - Crystal Reports 2008 Business Objects - XI I have written a query to populate a subreport and want to pull in a parameter to that query based on input from a user. My question is, what is the correct syntax I need to put in the first line of the 'Where' clause to accept the parameter? Here is the query I am using in Crystal Reports: Select Projecttname, ReleaseDate, TaskName From DB_Table Where (Project_Name like {?Pm-?Proj_Name})) and (ReleaseDate) >= currentdate 回答1: When

Crystal Report doesnt display in ASP.net webpage which is build by using VS 2013

浪尽此生 提交于 2019-12-18 03:01:51
问题 I am developing a website using ASP.NET and I want to display a report in my webform. I am using crystal report as my reporting tool. I am using visual studio 2013 as my IDE. This what I have tried. (My SAP version is to 13.0.9). private void loadReport() { ReportDocument rpt = new ReportDocument(); rpt.Load("D:\\Report_Test.rpt"); rpt.VerifyDatabase(); CrystalReportViewer1.ReportSource = rpt; } above code works fine with visual studio 2010 but not in 2013. When I load the page it is empty.

Could not load file or assembly crdb_adoplus.dll

南笙酒味 提交于 2019-12-17 22:18:29
问题 For the following error: Could not load file or assembly ‘file:///C:\Program Files\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll’ or one of its dependencies. Is there any way to resolve this error other than through the solution: <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0"/> </startup> That solution not work in my application 回答1: Please use this code. It may be helpful for you. <startup

How do I point Crystal Reports at a new database

蓝咒 提交于 2019-12-17 21:54:49
问题 I have a Crystal Reports 2008 user that has over 100 custom developed reports. The reports all query Sql Server databases (SQL 2005). This database server is getting replaced with a new system (running SQL 2008 R2) and the existing databases will be moved to the new server. The new database server will have a different name (which I can address via the Crystal Reports Connections), however, one of the applications is also being upgraded at the same time. The old database (DB_A) will be

Report asking for database login on setting DataTable as DataSource

一个人想着一个人 提交于 2019-12-17 21:21:03
问题 Report designer creates crystal report in designer with direct connection to database with ODBC (DSN) connection. Same reports are executed via a Winform(C#) application via DSN and provides Database Server, database, user ID and password. I need to make such changes to the Crystal Report object. ReportDocument should not directly connect to Database via DSN. Instead, we will bring data via service by calling respective stored procedure and parameters as System.Data.DataTable . This DataTable