crystal-reports

How to Print from ASP.NET CrystalReport on client side printer

╄→尐↘猪︶ㄣ 提交于 2019-12-19 12:02:05
问题 How do I print report from CrystalReport (ASP.NET) on a client side printer. 回答1: You have two options: Set the PrintMode to ActiveX or PDF, and leave the Crystal report viewer toolbar to handle it. Create a pdf in an iFrame, and trigger the print command with JavaScript. To simplify what the users had to install on each client I went with the hidden pdf option and a separate button to print to client. On the aspx page I have an asp literal that I populate with the pdf embeded object at 1px x

Filter data in crystal report using datetimepicker

感情迁移 提交于 2019-12-19 10:05:05
问题 I'm working on a report in Crystal Reports C# windows application.i fetch the data from localhost server to crystal report. I have 2 datetimepicker in my form. datetimepicker1 = dtpfrom datetimepicker2 - dtpto Crystalreport Now I want that, when selecting some date in from and the to datetimepicker the between data is show in the crystal report please help me to solve i don't know how to start. i'm searching through googling i didn't get any thing about between data in datetimepicker show in

Steps to Pass parameters to crystal reports in C#

不羁岁月 提交于 2019-12-19 09:06:25
问题 Can you tell me what are the steps to pass parameters to crystal reports 13 in C# win form.. my code: //getting and set dataset to report string sql = "select * from dbo.Trading_Order"; DataRetriever dr = new DataRetriever(); dr.getValueFromCustomer(sql); DataTable dtSum = dr.getDataTable(); dsMyReprt k = new dsMyReprt(); k.Tables.Remove("dtMyTable"); dtSum.TableName = "dtMyTable"; k.Tables.Add(dtSum); CrystalReport1 myDataReport = new CrystalReport1(); //pass parameter ParameterFields

using result from a stored procedure with parameters as value for gauge chart - crystal reports in asp.net application

无人久伴 提交于 2019-12-19 09:03:43
问题 I have a stored procedure that takes in 2 parameters and returns an integer value. I would like this value to be the value for a gauge chart on the page. The 2 parameters will change depending on the attributes of the selected item. Is there a simple way to pass the one value from the stored procedure to the chart to display? This will be embedded in an asp.net application (vb) - so depending on the previously selected item, the values for the parameters and result will change. thank you for

CrystalReportViewer print

廉价感情. 提交于 2019-12-19 03:58:27
问题 I would like to access the Print event of CrystalReportViewer(while I click the Print button of CrystalReportViewer) in ASP.NET C#, How ? 回答1: Something like the below should work. Hope it helps. public Form1() { InitializeComponent(); foreach (ToolStrip ts in crystalReportViewer1.Controls.OfType<ToolStrip>()) { foreach (ToolStripButton tsb in ts.Items.OfType<ToolStripButton>()) { //hacky but should work. you can probably figure out a better method if (tsb.ToolTipText.ToLower().Contains(

How to print crystal report directly to a client machine using C# Asp.net

一笑奈何 提交于 2019-12-19 03:19:23
问题 I need to print a Crystal report page to client printer machine without showing the report or without showing any dialog box. One point I'd like to mention is that I know the name of Client Printer. How do I send the path to that printer. Just to make it clear the application runs on a server machine in a remote location. There are some similar question here , but WITHOUT any final solution,like this one. How to print crystal report without opening the report in asp.net? Is there a specific

Passing Subreport Value to Main Report

China☆狼群 提交于 2019-12-19 03:15:02
问题 In my Report I am passing the Total of Subreport to display in the Main Report for that I am using the below Formula, In Subreport, WhilePrintingRecords; Shared Numbervar EvTotal:= cdbl({Evaluation_Details.NOOFCOPIESEVALUATED}) In Main Report, Shared NumberVar EvTotal; EvTotal; but when I Include the Formula for displaying in the Main Report it is Dispalying "0" instead of Total of SubReport 回答1: A couple of things: You have some typos in your code. Here you were missing the semi-colon at the

CrystalImageHandler.aspx not found

情到浓时终转凉″ 提交于 2019-12-19 02:54:18
问题 I am using Crystal reports viewer on a normal ASP.NET aspx page in an MVC3 application. In a controller action I am simply redirecting to the aspx page and the report shows fine. But the problem is with dynamic images. I have found the simplest solution for this and this to pass the image path as a report parameter and set this parameter as image source. In Visual Studio preview this works fine but when executing I see this error on the page. "NetworkError: 404 Not Found - server

Crystal report; Combining rows of data into a single value

泄露秘密 提交于 2019-12-19 02:26:48
问题 I have a data in rows like this for id 1 id1 a1 id1 b2 id1 c3 id1 d4 id1 e5 I like to combine it as "a1b2c3d4e5" into a single value for id1. Thanks in advance. 回答1: One approach is the "3 Formula" method. You set up an initialising formula in each header, with the evaluation time directive "WhilePrintingRecords". This approach was the only one available for doing running totals in the "good ol' days" before RunningTotal objects were available. For example: In the Group Header :- Have a

How to convert datetime format to date format in crystal report using C#?

好久不见. 提交于 2019-12-19 01:24:12
问题 i am working c# windows form application and also in crystal report.i am retriving the date from database in datetime format but i like display date only in report,Is any formula field in crystal report help for me for this problem.Thanks in Advance. 回答1: If the datetime is in field (not a formula) then you can format it: Right click on the field -> Format Editor Date and Time tab Select date/time formatting you desire (or click customize) If the datetime is in a formula: ToText({MyDate}, "dd