ExportASCII
Export worksheet to an ASCII file
int ExportASCII( LPCSTR lpcszFilename, DWORD dwCntrl, char cSeparator = '\t', int nR1 = 0, int nC1 = 0, int nR2 = -1, int nC2 = -1 )
On error, returns -1, otherwise returns the exported file size.
EX1
// Worksheet with data should be the active window int Worksheet_ExportASCII_Ex1() { Worksheet wks = Project.ActiveLayer(); if(wks) { string strFile = GetSaveAsBox("*.dat"); return wks.ExportASCII(strFile, WKS_EXPORT_ALL); } else return -99; }
origin.h