skip navigation
Telerik Reporting
Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
NEW
: Design Kits for Figma
Online Training
Document Processing Library
Embedded Reporting for web and desktop
Web
Kendo UI
UI for jQuery
UI for Angular
UI for React
UI for Vue
UI for Blazor
UI for ASP.NET Core
UI for ASP.NET MVC
UI for ASP.NET AJAX
Mobile
UI for .NET MAUI
UI for Xamarin
Document Management
Telerik Document Processing
Desktop
UI for .NET MAUI
UI for WinUI
UI for WinForms
UI for WPF
Reporting
Telerik Reporting
Telerik Report Server
Testing & Mocking
Test Studio
Test Studio Dev Edition
Telerik JustMock
CMS
Sitefinity
UI/UX Tools
ThemeBuilder
Design System Kit
Templates and Building Blocks
Debugging
Fiddler
Fiddler Everywhere
Fiddler Classic
FiddlerCap
FiddlerCore
Free Tools
VB.NET to C# Converter
Testing Framework
View all products
Overview
Demos
Roadmap
What's New
Roadmap
Release History
Docs & Support
Support and Learning
Support and Learning Hub
First Steps
Docs
Demos
Virtual Classroom
Use Reports in Applications
System Requirements
Forums
Videos
Blogs
Submit a Ticket
FAQs
Pricing
Shopping cart
Login
Contact Us
Try now
close mobile menu
Telerik Forums
/
Reporting
This is a migrated thread and some comments may be shown as answers.
without saving the pdf file showing the print preview
0 Answers
118 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
vinayak.v
Top achievements
Rank 1
vinayak.v
asked on
29 Sep 2010,
11:07 AM
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..
Add a comment
Submit comment
Cancel
No answers yet. Maybe you can help?
Answer this question
Drag and drop files here or
browse
to attach...
Browse
for files to attach...
Supported file types: PNG, JPG, JPEG, ZIP, RAR, TXT. Max total file size - 20MB.
Submit answer
Cancel
Tags
General Discussions
Asked by
vinayak.v
Top achievements
Rank 1
Share this question
or
Copy link