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
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 Filter the Crystal reports?
12 Answers CCIL, Mammut Building Systems,
How do we connect to the database?
What are Crystal Reports and Crystal Reports Explorer?
Explain reporter footer contents are move depend the page footer values?
Where can we find the log file genertaed when we run a crystal report?
Where is the image located, after youve placed it on the report?
How do you format your crystal reports so that on exporting to word doc or pdf it will not lose the orginal format
How many sub-reports can report can have?
How can we improve the performance of a crystal report?
Can we export data of reports into other format like in world doc etc?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)