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


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Crystal Reports Interview Questions

Is it possible to export crystal report with linked subreports in one excel sheet?If yes,then how?

4 Answers   IBM,


what is the "refresh" button suppose to do on the crystal report viewer?

2 Answers  


where is the "save data with report" option?

2 Answers  


How to present data from Crystal Reports on to form?

3 Answers  


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

0 Answers   Tech Mahindra,






How do we format field?

4 Answers  


how to create crystal reports in .net

2 Answers   CTS,


When looking at the join types in Crystal - what does it mean when you coose Enforce and Enforce To or Enforce From

3 Answers  


Explain reporter footer contents are move depend the page footer values?

0 Answers  


HOW TO USE 5 CRYSTAL REPORT OR SUBREPORT ON DIFFERENT CONDITIONS IN ONE VB PROGRAM

1 Answers  


How to add Crystal Reports(Standalone) to my VB.NET project

2 Answers  


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? thanks you email - stanlte@yahoo.com

3 Answers  


Categories