Hi all,
i have created a repport to fill in an excel template through the excel buffer.
the report opens the file C:\Temp\template.xls
the data is inserted to the excel file.
than i use the save as funciont to store it as c:\temp\Results.xls
this all works fine except the template.xls file stays open in background.
how can i close this file?
thanks.
0
Comments
You need to create a new function in which there is the command to close the file (or you can add it to the function where you save the file).
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
because the last active file was the result.xls file.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
http://www.BiloBeauty.com
http://www.autismspeaks.org
thanks for your support. unfortunatly the solution is still not there.
when i call close function again i got the message:
Could not invoke the member close. the ole control returned a unknown message.
i try to explain the problem more clearly:
-open template.xls
-modify data
-save as restults.xls
the excel file results.xls is closed but the file template.xls stays open in background.
The second close-command generates the error because you just closed it.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
but how can i close the template.xls file?
2. you save it as Results.xls. At the moment you save it as Results.xls, the template.xls HAS BECOME Results.xls.
3. you close Results.xls. You don't need to close template.xls anymore.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!