Reputation: 396
I'm creating a pdf file using crystal reports. The report is being successfully exported and created. However, when this is done, I need my WPF application to automatically open the report given the specified path:
string path = svfl.FileName; <--SaveFileDialog
//somecode here
report.Export();
if (File.Exists(path))
{
System.Windows.Forms.MessageBox.Show(path);
File.Open(path, FileMode.Open);
}
The file exists since it goes into the condition, however it does not open. What am i missing?
Upvotes: 1
Views: 1547