--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.
On Mon, Jun 18, 2018 at 11:41 PM UTC, AMPL Google Group <am...@googlegroups.com> wrote:
Could you please try adding the option "verbose=1" to your table declaration as follows and send us the additional output shown?
table exporta OUT "tableproxy" "odbc" "evacuation.xlsx" "verbose=1": ...
As this may be a limitation of the ODBC driver for Excel that you have installed. You should also check the ODBC drivers that you have installed by running odbcad32.exe. Under the tab drivers there should be one similar to the following: "Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb);".
--
Filipe Brandão
am...@googlegroups.com
On Mon, Jun 18, 2018 at 5:20 PM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
Hi guys
I want to export a three dimension variable.
I tried the following:table exporta OUT "tableproxy" "odbc" "evacuation.xlsx":[nodos_filas,nodos_columnas,tiempo],x;solve;write table exporta;I tried too:table exporta OUT "odbc" "evacuation.xlsx":[nodos_filas,nodos_columnas,tiempo],x;solve;write table exporta;Excel is created in both cases but i can not open the excel Neverthless if i put xls instead xlsx i can open excel so doesnt work with xlsx?
Thanks and Regards
i tried your proposal and i get the following:
CPLEX 12.7.1.0: optimal integer solution; objective 181057.8932
168 MIP simplex iterations
0 branch-and-bound nodes
No basis.
AMPL ODBC driver, version 20151130.
Connection string: "DBQ=evacuation.xlsx;DefaultDir=.;Driver={Microsoft
Excel Driver (*.xls, *.xlsx, *.xlsm,
*.xlsb)};DriverId=1046;MaxBufferSize=2048;PageTimeout=5;ReadOnly=0;"
any file was created
On Tue, Jun 19, 2018 at 3:18 PM UTC, AMPL Google Group <am...@googlegroups.com> wrote:
Could you please try with each of the following table declarations that specify the driver to be used?
table exporta OUT "tableproxy" "odbc" "Driver=Microsoft Excel Driver (*.xls, *.xlsx,
*.xlsm, *.xlsb);ReadOnly=0;DBQ=evacuation.xlsx" "verbose=1": ...
or
table exporta OUT "odbc" "Driver=Microsoft Excel Driver (*.xls, *.xlsx,
*.xlsm, *.xlsb);ReadOnly=0;DBQ=evacuation.xlsx" "verbose=1": ...
--
Filipe Brandão
am...@googlegroups.com
On Tue, Jun 19, 2018 at 2:14 AM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
Applying verbose =1, i get the following:
ampl: include try.run;
_ampl_elapsed_time + _total_solve_elapsed_time = 0
CPLEX 12.7.1.0: optimal integer solution; objective 181057.8932
168 MIP simplex iterations
0 branch-and-bound nodes
No basis.
AMPL ODBC driver, version 20151130.
Hi guys
I want to export a three dimension variable.
I tried the following:table exporta OUT "tableproxy" "odbc" "evacuation.xlsx":[nodos_filas,nodos_columnas,tiempo],x;solve;write table exporta;I tried too:table exporta OUT "odbc" "evacuation.xlsx":[nodos_filas,nodos_columnas,tiempo],x;solve;write table exporta;Excel is created in both cases but i can not open the excel Neverthless if i put xls instead xlsx i can open excel so doesnt work with xlsx?
Thanks and Regards

To unsubscribe from this group and stop receiving emails from it, send an email to ampl+unsubscribe@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+unsubscribe@googlegroups.com.
Hello
I am sending the file and the screenshot that pop-up when i tried to open it.
Thanks and Regards
Miguel Ángel
On Wed, Jun 20, 2018 at 3:53 PM UTC, AMPL Google Group <am...@googlegroups.com> wrote:
Could you please send us one of these .xlsx files which cannot be opened?
A possible solution may require updating the ODBC drivers by installing Microsoft Access Database Engine 2016 (https://www.microsoft.com/en-us/download/details.aspx?id=54920&751be11f-ede8-5a0c-058c-2ee190a24fa6=True).
--
Filipe Brandão
am...@googlegroups.com