This discussion has been locked.
You can no longer post new replies to this discussion. Posts are automatically locked, when no new replies have been made for a long time. If you have a question you can start a new discussion.

Create Excel-File - Navision 2.01

Hi everybody,

i have a problem in creating a excel-file in Office-97.

Name DataType Subtype Length
xlsApp Automation 'Microsoft Excel 8.0 Object Library'.Application
xlsBook Automation 'Microsoft Excel 8.0 Object Library'.Workbook
xlsSheet Automation 'Microsoft Excel 8.0 Object Library'.Worksheet
xlsRange Automation 'Microsoft Excel 8.0 Object Library'.Range

CLEAR(xlsApp);
CLEAR(xlsBook);
CLEAR(xlsSheet);
CREATE(xlsApp);
xlsBook := xlsApp.Workbooks.Add(c:\test.xls);
xlsSheet := xlsApp.ActiveSheet;
xlsSheet.Name := 'Tabelle1';
xlsSheet.Range('A1').Value := 'Test';
xlsBook.Save;
xlsBook.Close(FALSE);
CLEAR(xlsApp);

The errormessage is like "test.xls could not be found. please check the path and filename". But i only want to create it.

I hope someone can give me a tip.

thanks
Ralf Beiten

Related
Recommended