Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8808

Re: WPF Crystal report throws an exception when user tries to replace a file which is open during export of report.

$
0
0

Hi Manini,

 

Junjie in R&D had a look at this issue and here's how to work around it:

 

reportViewer.ViewerCore.Error += new
SAPBusinessObjects.WPF.Viewer.ExceptionEventHandler(ViewerCore_Error);

 

 

void ViewerCore_Error(object source,
SAPBusinessObjects.WPF.Viewer.ExceptionEventArgs e)

         {

             if (e.Exception != null)

             {

                 MessageBox.Show(e.Exception.Message);

                 e.Handled = true;

             }

         }

 

Please test and update if you have issues or questions.

 

Thanks again

Don


Viewing all articles
Browse latest Browse all 8808

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>