Hi Jason,

try class AsciiIO instead of CommaIO.

Hope this helps, Annette

Mit freundlichen Gr��en / Best regards
Dipl. Phys. Annette Thei�en
System Software Entwicklung
______________________________________________
Viscom AG - Carl-Buderus-Str. 9-15 - D-30455 Hannover
Phone: +49/511/94996-0 - Fax: +49/511/94996-900
mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  -
http://www.viscom.de <http://www.viscom.de/

-----Urspr�ngliche Nachricht-----
Von: jasonm [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 10. August 2004 13:57
An: [EMAIL PROTECTED]
Betreff: [development-axapta] file writes non-csv



Hello all,

can someone help me with this please.

I have to output a csv file of data from axapta, which I have done. But
the third party software that requires this file needs the first line
without quotes arround it. (NON-csv) and the rest of the file as csv.

Below is my code....to out all lines as csv file

========================================================================
==================

Filename                    filenameInProcess;
  Container                   lineData;
;

filenameInProcess= "c:\\csvfile.csv";

CSVFile  = new CommaIO(filenameInProcess,"W");

    lineData = ["CSV  YYYY/MM/DD hhmm    HEAD LINE VAT  TRAIL
NN     "];
    CSVFile.writeExp(lineData);

...subsequent lines in csv format.

========================================================================
==================

I think the way to do this is to create the file as csv then re-read and
write out as non-csv file, removing the quotes from the first line?

Can anyone help with some code on how to do this?

Regards,

Jason




[Non-text portions of this message have been removed]



Yahoo! Groups Sponsor     

ADVERTISEMENT

<http://us.ard.yahoo.com/SIG=129uce4a5/M=298184.5285298.6392945.3001176/D=gr
oups/S=1705006764:HM/EXP=1092226421/A=2164330/R=0/SIG=11eamf8g4/*http://www.
netflix.com/Default?mqso=60183350> click here     

<http://us.adserver.yahoo.com/l?M=298184.5285298.6392945.3001176/D=groups/S=
:HM/A=2164330/rand=364372468>      


  _____ 

Yahoo! Groups Links


*      To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
<http://groups.yahoo.com/group/development-axapta/>
 

*      To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
 

*      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to