Import csv into Excel 2007 - FieldInfo
I am trying first time to open Excel (Excel 2007 Trial version) from Progress (OE10.1B) and to import a csv file into Excel. The file is delimited by semi-colon rather than comma. The current codes :-
Def var ExAppl as com-handle.
CREATE "Excel.Application" ExAppl.
ExAppl:Visible=true.
ExAppl:Workbooks:OpenText ( "D:\McData\Cust92\arprsagt.dat",,,1,,,,True,,,, ,).
Everything is default except for '1' which should mean it is a delimited file and 'True' meaning it is delimited by semi-colon.
Question:
How to format the columns? Assuming I have 2 columns - 1 Text column and 1 Amount column - how do I issue commands to tell Excel that I want the 2nd-column to display upto 2 decimal places or that I want negative numbers to be displayed in ( ) . Should I use the FieldInfo (which is the 2nd last-parameter that is left blank above) and if so, what is the syntax. I am stumped by the syntax here.
Thanks for any clues.
I am trying first time to open Excel (Excel 2007 Trial version) from Progress (OE10.1B) and to import a csv file into Excel. The file is delimited by semi-colon rather than comma. The current codes :-
Def var ExAppl as com-handle.
CREATE "Excel.Application" ExAppl.
ExAppl:Visible=true.
ExAppl:Workbooks:OpenText ( "D:\McData\Cust92\arprsagt.dat",,,1,,,,True,,,, ,).
Everything is default except for '1' which should mean it is a delimited file and 'True' meaning it is delimited by semi-colon.
Question:
How to format the columns? Assuming I have 2 columns - 1 Text column and 1 Amount column - how do I issue commands to tell Excel that I want the 2nd-column to display upto 2 decimal places or that I want negative numbers to be displayed in ( ) . Should I use the FieldInfo (which is the 2nd last-parameter that is left blank above) and if so, what is the syntax. I am stumped by the syntax here.
Thanks for any clues.