How to "Print" in Crystal Reports while using ASP DOT NET
Platform?

Answer Posted / rahul

using CrystalDecisions.Shared

CrystalReport1 cr= new CrystalReport1;

'here crystalreport1 is crystal report which we design.

CrystalViewer1.ReportSource = cr;

OR

we can directly print the report without showing report

CrystalReport1 cr= new CrystalReport1;

cr.PrintToPrinter(1,False,1,1);

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain basic steps required to display a simple report in crystal?

658


How the data expert of flash object(after inserting flash object_right click-data expert) is useful in crt?

1314


Explain the various components in crystal reports?

768


How can we improve the performance of a crystal report?

689


How to open subreport in new ie window using hyperlink button. I used target=new; in the formula field. But it overrides the main window and show the report?

682






How to access crystal reports in .net?

689


Suppose I have a crystal report with a linked subreport as well. Is there any way not to print the current record on the main report if no records are returned from the subreport?

648


how can we convert crystal dictionary dc5 file to another datasource format like mdb or xml schema

2671


Why do we use crystal reports when we have reporting tools in bo itself?

709


Where can we find the log file generated when we run a crystal report?

695


hi... i've two crystal reports one is in D: drive name employee.rpt with 5 textobject and another report is in E: drive name employee.rpt with 15 textobject... now i want to write a program to overwrite the D drives report with E drives reports i.e i want to replace the 5 textobject with 15 textobject.. overwriting the reports while it is executing .. is there any code for it please help me.. its urgent..

2688


Kindly Help for this Below Scenario, I am going to implement Power BI into our internal software. I’m familiar with the fact that each user can pay $9.99 a month to build and view reports but what I need to know is how can we embed Power BI into our application so that any users that log into our application can see the reports without the monthly fee. I’ve researched enough that it can be done. What I am not familiar with is how to do it or the pricing of embedding it into an application. I think they do pricing on how many renders you do or something. Would you be able to look into how we could embed it into our software and the cost?

1388


Is there a size limit to creating a Crystal Report? If I run a statement report for all customers it will crash if there are too many customers. I can print all the statements if I select them in batches, but if trying to print all at once Crystal will crash after a few minutes.

944


What all performance improvement techniques used in crystal reports? (Particularly cr xi)?

656


hi.. i've one crystal report. i want the report header as "employee database". i dont want to right click->insert and goto text object and insert. i've one aspx page and aspx.cs page also. now i want the "employee database" header to be printed from .cs file. i dont want to pass by parameter also.. i.e is there any option in .cs file something like ReportDocument myreport = new ReportDocument(); myreport.Load(MapPath("~/" + "emp.rpt")); myReport.Reportheader="Employee database"; i hope u have understood this. only thing is from .cs file i want to print the header as employee database. i dont want by passing parameter also... please help....

2462