06-06-2007 12:10 AM
You do not need to set the format of the cell to Date/Time to display a time string.
Since you'll send date and time as a string it is even better to make it a text cell. Because cells formatted as date/time will be treated different by Excel. Nothing wrong with CVI.
Thats why you get a wrong date value in your cell.
06-06-2007 12:34 AM
First of all, I recommend you to use functions from ExcelRpt library.
These functions' name start with "ExcelRpt_". They are simpler and better documented.
Can you try ExcelRpt_WorkbookSave, please?
You can also save while closing the workbook using ExcelRpt_WorkbookClose(handle, 1);
Hope this helps.
06-06-2007 03:56 AM
Some suggestions on your sample project.
First of all, you must match every object allocation with a correspondent deallocation, otherwise some processes may remain pending (you may observe them in windows task manager) and give problems in the future. I modified your sample project this way and on my machine all is working well without errors using Excel_WorkbookSave command.
As per the attachment, I don't know if RAR files are allowed on this board: I always attached ZIP files without problems.
Last, it's not necessary to add debug files to the attached file (all _dbg files and the cvibuild directory): they unnecessarily increase attachment size adding informations that are rebuild every time you run the project.
06-08-2007 08:03 PM
06-09-2007 02:58 AM