Hi Eric,
You can try the following variation to explicitly request the driver that is listed (in ODBC.JPG):
table Rflow OUT 'tableproxy' 'odbc'
"Driver=Microsoft Excel Driver (*.xls);
ReadOnly=0;DBQ=C:\Users\ampl02\Test_AMPL2017\smallLP\Results2.xls": ...
Be sure that the specification in quotes beginning Driver= is all on one line. (You don't need to specify "Rflow" as the spreadsheet range since it's also the name of the AMPL table.) Before running, check that ampltabl_64.dll, ampltabl.dll, and tableproxy32.exe are all in the same folder as ampl.exe.
If you continue to have trouble, try downloading the latest AMPL distribution -- you are running a version from 2013 (according to option.JPG) and there have been numerous fixes and updates since then. According to our records, the person at your institution who has access to our download site is Line Simoneau <
Line.S...@forac.ulaval.ca>.
Finally if you are still seeing a problem with the latest version, run again with the "verbose" option like this:
table Rflow OUT 'tableproxy' 'odbc'
"Driver=Microsoft Excel Driver (*.xls);
ReadOnly=0;DBQ=C:\Users\ampl02\Test_AMPL2017\smallLP\Results2.xls" "verbose=1": ...
This will cause "write table" to produce a lot more output; send us the whole listing and we will have a look at it.
Bob Fourer
am...@googlegroups.com
=======
From:
am...@googlegroups.com [mailto:
am...@googlegroups.com] On Behalf Of Eric E Sättar
Sent: Sunday, November 19, 2017 10:19 PM
To: AMPL Modeling Language
Subject: Re: [AMPL 15164] Re: write model results into excel-sheet
hanks for your support, I enclosed all items upon your request. Please see the attachments.
Meanwhile, I used the following command to write the variable called 'flow' data into the Results2.xls, which I already created an excel file with this name under my directory.