Hello,
I am developing a program to write to exel from progress,
using some code like this.
def var h-excel as com-handle no-undo.
def var h-book as com-handle no-undo.
def var h-sheet as com-handle no-undo.
CREATE "Excel.Application" h-Excel.
h-book = h-Excel:Workbooks:Add().
h-Sheet = h-Excel:Sheets:Item(1).
h-sheet:range("A1"):value = "12/31/2007". /* mdy */
h-sheet:range("A1"):Numberformat = "dd-mm-jjjj". /* dutch */
Compile it and distribute it to our customers
It works fine except for that workstation with his/her
international settings set to US america.
Here the output is 31-12-jjjj and not 31-12-2007
Changing it to dd-mm-yyyy works for the US one,
but all workstations with setting Dutch display 31-12-yyyy
Is there a way to determe what excel wants ?
dd-mm-jjjj or dd-mm-yyyy ?
( I had the same problem with dot versus komma in decimals.
Here i found in the windows registry the decimal-separator ,
and used this value to set the mask. )
Thanks in advance,
I am developing a program to write to exel from progress,
using some code like this.
def var h-excel as com-handle no-undo.
def var h-book as com-handle no-undo.
def var h-sheet as com-handle no-undo.
CREATE "Excel.Application" h-Excel.
h-book = h-Excel:Workbooks:Add().
h-Sheet = h-Excel:Sheets:Item(1).
h-sheet:range("A1"):value = "12/31/2007". /* mdy */
h-sheet:range("A1"):Numberformat = "dd-mm-jjjj". /* dutch */
Compile it and distribute it to our customers
It works fine except for that workstation with his/her
international settings set to US america.
Here the output is 31-12-jjjj and not 31-12-2007
Changing it to dd-mm-yyyy works for the US one,
but all workstations with setting Dutch display 31-12-yyyy
Is there a way to determe what excel wants ?
dd-mm-jjjj or dd-mm-yyyy ?
( I had the same problem with dot versus komma in decimals.
Here i found in the windows registry the decimal-separator ,
and used this value to set the mask. )
Thanks in advance,