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
Is it possible to export crystal report with linked subreports in one excel sheet?If yes,then how?
what is the "refresh" button suppose to do on the crystal report viewer?
where is the "save data with report" option?
How to present data from Crystal Reports on to form?
Why do we use crystal reports when we have reporting tools in bo itself?
How do we format field?
how to create crystal reports in .net
When looking at the join types in Crystal - what does it mean when you coose Enforce and Enforce To or Enforce From
Explain reporter footer contents are move depend the page footer values?
HOW TO USE 5 CRYSTAL REPORT OR SUBREPORT ON DIFFERENT CONDITIONS IN ONE VB PROGRAM
How to add Crystal Reports(Standalone) to my VB.NET project
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