Foxtable(狐表)用户栏目专家坐堂 → 如果表和字段名是英文,标题是中文,如何导出中文excl数据


  共有3745人关注过本帖树形打印复制链接

主题:如果表和字段名是英文,标题是中文,如何导出中文excl数据

帅哥哟,离线,有人找我吗?
weibu
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:三尾狐 帖子:659 积分:5363 威望:0 精华:0 注册:2018/5/19 22:27:00
如果表和字段名是英文,标题是中文,如何导出中文excl数据  发帖心情 Post By:2019/8/10 10:17:00 [只看该作者]

1.如果表和字段名是英文,标题是中文,如何导出中文excl数据?就是狐表Syscmd.Project.QuickExport(),这个导出功能




2.我想导出excl中含有 indentify 这个默认的关键字列,如何导出?





3.下面代码,我想导入的是中文列名的excl。是不是只要把Dim excel列() As String = {"proclass", "probrand", "probar","procode","proname","momunit","sonunit","unitno","sourcetype","prospecs","timesafe","prostate","checkbar","商品ID"}  这个列名改成我想要的中文就行了?


Dim dt As DataTable = DataTables("rs_productinfo")
Dim 列名() As String = {"proclass", "probrand", "probar","procode","proname","momunit","sonunit","unitno","sourcetype","prospecs","timesafe","prostate","checkbar","proid"}
Dim excel列() As String = {"proclass", "probrand", "probar","procode","proname","momunit","sonunit","unitno","sourcetype","prospecs","timesafe","prostate","checkbar","商品ID"}

Dim Result As DialogResult
Result = MessageBox.Show("确定要导入吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If Result = DialogResult.Yes Then
    Dim dlg As New OpenFileDialog
    dlg.Filter = "Excel文件|*.xls"
    dlg.MultiSelect = True '允许选择多个文件
    If dlg.ShowDialog =DialogResult.OK Then
        Dim Book As New XLS.Book(dlg.FileName)
        Dim Sheet As XLS.Sheet = Book.Sheets("商品信息")
        dt.ResumeRedraw()
        dt.StopRedraw()
        'systemready = False


 回到顶部
帅哥哟,离线,有人找我吗?
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:111393 积分:567029 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/8/10 10:34:00 [只看该作者]

1/2,只能手工导出,如:http://www.foxtable.com/webhelp/topics/1148.htm

3、是的

 回到顶部