01-31-2022 02:31 AM
Hello Together,
for a test device I'm creating an excel file.
sometimes I get the following Error:
from debugging I know, this happens here:
Working solution is to end the Excel Task via the Taskmanager:
is there a way to do this within the program as I'd like to reduce User interaction..
Thanks
Solved! Go to Solution.
01-31-2022 08:00 AM
Hello,
By using the Report Generation Toolkit it works well even if Excel is already open and in use.
An other way is to kill the task with System Exec, as you are doing manually currently.
02-02-2022 02:54 AM
Hi defaphe,
thanks for the Tip.
I tried the following, but it doesn't work.
Error occurs at the "workbooks""add"
the termination is ok, but again at the "add workbook" the error happens again and the excel Task is still running
so obviously the termination of the excel task does not work
any ideas why:?
02-02-2022 03:55 AM
even the full path name does not work:
02-02-2022 05:40 AM
You are missing some "". See the snippet below.
02-02-2022 08:11 AM
damn, always those tiny details which blocks those functions...
with the "" it works!
Thanks!