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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / agshar

But This will print on Server Side not on client side , how
To print on Client side without click on Print Button on
Crystal report viewer ?

Is This Answer Correct ?    2 Yes 3 No

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

Answer / rajavivekvarma

Bind the report to crystal report viewer.the viewer handles
the print code.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Crystal Reports Interview Questions

Is it possible to join more than one universe in Busniess Objects BOE XI ? If its so Please explain how is that possible ? Thanks in advance for the people posting the answers

3 Answers   Wipro,


I am not able to see any image on Crystal Report at Run time. So how can I load any image which is saved in local disk so that it can be viewed at Runtime in Crystal reports?

5 Answers  


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

0 Answers   Tech Mahindra,


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

0 Answers  


How can we improve the performance of a crystal report? OR What all performance improvement techniques used in crystal reports? (particularly CR XI)

9 Answers   CSC, ERS, Jupiter,


How to write a formula to change a font based upon data ?

2 Answers  


hi ... i've created one crystal report in windows form and one crystalreportviewer .. the following is my code.. in form1.cs file try { ExportOptions CrExportOptions; DiskFileDestinationOptions CrDiskFileDestinationOptions = new DiskFileDestinationOptions(); PdfRtfWordFormatOptions CrFormatTypeOptions = new PdfRtfWordFormatOptions(); CrDiskFileDestinationOptions.DiskFileName = "c:\\csharp.net- informations.pdf"; CrExportOptions = cryRpt.ExportOptions; { CrExportOptions.ExportDestinationType = ExportDestinationType.DiskFile; CrExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat; CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions; CrExportOptions.FormatOptions = CrFormatTypeOptions; } cryRpt.Export(); } the above code is saving the file into pdf into specified path.. but i dont want to save a file i should get direct print preview and have a option to print .. As we do in web application using crystal report viewer clicking print and report will be opened in pdf.. and the click print.. i want the same function as we do in web application... i'm writing code in c#.net hope the above explaination will be understood clearly..

0 Answers  


Can we use stored procedure for creating the report?

11 Answers   Medreich,


Can we use our own SQL for creating a report?

5 Answers  


What are field expressions and what are the diff types? (I looked this up in the internet and never found anything with regards to types of field expressions)?

0 Answers  


where is the "save data with report" option?

2 Answers  


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....

0 Answers  


Categories