Author: Xingda Computer technology company (www.study01job.com) Guo Baoli
The question is presented as follows:
[Ask for help]datawindow's SaveAs () How to keep the Chinese name of the head down
With DataWindow SaveAs (), when exporting the lead text or Excel file, always replace the header with the name of the English column in the database, is there any way to keep the Chinese name on the head of the data window? Thank you for your advice! If very troublesome through my qq:10110611 or email: heshizhen@163.com Contact can also, thank you!
My answer:
Ideas are as follows:
1. Get Chinese character information:
For li_index = 1 to integer(dw_1.object.DataWindow.Column.Count)
ls_ColNam = dw_1.Describe('#' + String(li_index) + '.name')
ls_ColName = dw_1.Describe(ls_ColName + '_t.text')
ls_Chinese = ls_ColName + '~t' + ls_ColName
next
if Len(ls_Chinese) > 1 then ls_Chinese = Right(ls_Chinese,len(ls_Chinese) - 1)
2, Save the data:
Dw_1.saveas (..............
3, the Chinese character information written to the file. This is a very simple question, no repetition.