Author |
Topic  |
|
mikec
USA
Posts |
Posted - 01/06/2004 : 2:33:46 PM
|
I'm trying to alter the Automation example to read data from a file, the problem I,m having is this.
I would like the x axis to be titles (strings) as apposed to numerical, however the Dataset template does not allow for string values. I tried having the Dataset declaired as a character array but that I'm having trouble converting the values.
Is there an easier way to do this?
thanks for the help. |
|
cpyang
USA
1406 Posts |
Posted - 01/07/2004 : 9:56:39 PM
|
To put text into a worksheet, you will be better off with defualt column type (Text & Numeric) and just call
BOOL SetCell(int nRow, int nCol, LPCSTR lpcszText);
in worksheet class.
Alternatively, Dataset class also have BOOL SetText(int nRow, LPCSTR lpcszTextValue);
If you have read a column of Text values from your file, you can also use Dataset class's
BOOL PutStringArray(vector<string>& as, int nRow1=0);
CP
|
 |
|
|
Topic  |
|
|
|