Names fields in the XLS-table created DC_WorkArea2Excel

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Names fields in the XLS-table created DC_WorkArea2Excel

#1 Post by Eugene Lutsenko »

Tell me, please: is it possible to make a Russian column names in the XLS-table created using the DC_WorkArea2Excel(), and, if possible, how to do it? It is necessary that the column names are self-explanatory, XLS-file, ie did not coincide with the names of the fields exported to MS Excel database.

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Names fields in the XLS-table created DC_WorkArea2Excel

#2 Post by rdonnay »

Of course, it is possible but not with the DC_WorkArea2Excel() function written as it is.

You have the source code and you can copy it and modify it to your needs.
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Names fields in the XLS-table created DC_WorkArea2Excel

#3 Post by Eugene Lutsenko »

You know, Roger, I did myself did not expect this, but added another parameter: aColumnNames your function DC_WorkArea2Excel(): an array with the names of the speakers, and began to take their names not from the array structure (where field names), and from this array, and all immediately received ! Thank you so much!

Just replace the line

Code: Select all

cHeader := aFields[i,2]
on the line

Code: Select all

cHeader := aColumnNames[i]
And no longer does anything!

We must, of course, is to remove the blank line after the name of the field and make the field size on the actual content

Post Reply