TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ruchi R
NA
112
266.9k
Exporting crystal report to pdf
Dec 22 2010 6:00 AM
Hi all,
i need to export crystal report to pdf.I am doing it in c#.net. In fact i have done the coding for it and the problem is , when i click on the export button it shows the message like "invalid report file path". Here is the code for my export button event.
private
void
btnExport_Click(
object
sender,
EventArgs
e)
{
try
{
ExportOptions
CrExportOptions;
DiskFileDestinationOptions
CrDiskFileDestinationOptions =
new
DiskFileDestinationOptions
();
PdfRtfWordFormatOptions
CrFormatTypeOptions =
new
PdfRtfWordFormatOptions
();
CrDiskFileDestinationOptions.DiskFileName =
@"C:\\test.pdf"
;
CrExportOptions = rpt.ExportOptions;
{
CrExportOptions.ExportDestinationType =
ExportDestinationType
.DiskFile;
CrExportOptions.ExportFormatType =
ExportFormatType
.PortableDocFormat;
CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions;
CrExportOptions.FormatOptions = CrFormatTypeOptions;
}
rpt.Export();
}
catch
(
Exception
ex)
{
MessageBox
.Show(ex.ToString());
}
}
Waiting for the reply,
Thanks,
ruchi
Reply
Answers (
1
)
Convention ... coding trend?
download file from ftp through httpwebrequest in c#.net1.1