Excel

DurandDurand Member Posts: 61
edited 2001-08-28 in Navision Financials
Hello, How to open a file already existing Excel. I thought of this code, but unsuccessfully :

CLEAR(App);
OPEN(App);
App.Visible(FALSE);
Book := App.Workbooks.Add();
Sheet := Book.Worksheets.Add();
...

thank you, Benoît

Comments

  • juliuskjuliusk Member Posts: 3
    Hello Benoit,
    try with

    Book := App.Workbooks.Open(FileName); // FileName= 'YourFile.xls'

    Best Regards
    Julius
Sign In or Register to comment.