Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ExcelExporter (Read 3770 times)
cgay1
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Dec 2nd, 2020
ExcelExporter
Jun 3rd, 2021 at 1:22pm
Print Post  
When attempting to Export a Workbook into Excel format with the ExcelExporter, if the file is already open it fails.  I notice in the output window that an error is generated, however, the ExcelExporter does not raise/throw the error:

java.io.FileNotFoundException: C:\MapEx\Results.xlsx (The process cannot access the file because it is being used by another process)

How can my program capture the error so I can prompt the user to close the file?
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: ExcelExporter
Reply #1 - Jun 4th, 2021 at 7:22am
Print Post  
ExcelExporter and CalcExporter from this build rethrow all IOExceptions -
https://mindfusion.eu/_temp/jpack_ioex.zip

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint