vinayak.v Light Poster

hi ...

i've created one crystal report in windows form and one crystalreportviewer ..

the following is my code..

in form1.cs file

ExportOptions CrExportOptions;
DiskFileDestinationOptions CrDiskFileDestinationOptions = new DiskFileDestinationOptions();
PdfRtfWordFormatOptions CrFormatTypeOptions = new PdfRtfWordFormatOptions();
CrDiskFileDestinationOptions.DiskFileName = "c:\\";
CrExportOptions = cryRpt.ExportOptions;
CrExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
CrExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions;
CrExportOptions.FormatOptions = CrFormatTypeOptions;
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

hope the above explaination will be understood clearly..