Is my question clear enough?
What I want to do are:
1. create or open a file in LV (use Open/create/replace File.vi), generate a new report, write data to the report, save report to file before dispose it.
2. use subvi to enter file's path and name, don't use labview's file dialog box or Excel's menu because we are using touch screen and they are not big enough for fingers.
What I encountered are:
got error message after Save Report to File.vi function, which is "Error -2146827284 occurred at Exception occured in Microsoft Office Excel, Cannot access read-only document 'file name'.. Help Path is C:\Program Files\Microsoft Office\OFFICE11\1033\xlmain11.chm and context 0 in Excel_Save_Workbook.vi->Save Report to File.vi
This error code is undefined. No on
e has provided a description for this code, or you might have wired a number that is not an error code to the error code input."
2.Excel open and I can see the data was written in it, after a few seconds later , got message from Excel which is "File Now available.
'file name' now available for editing, please select read/write for editing." something like that.
3. the data is written to Excel, but not saved before dispose report. so when reopen that file from excel, it is empty.
Does anyone know how to figure it out?
Thanks.