以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- [求助]未声明名称?这是何解? (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=110179) |
-- 作者:zyl19810322 -- 发布时间:2017/11/28 14:12:00 -- [求助]未声明名称?这是何解? Dim jbxx As DataTable = DataTables("基本信息") Dim wfcl As DataTable = DataTables("违法及处理情况") Dim Book As New XLS.Book(ProjectPath & "Attachments\\测试.xlsx") Dim Sheet As XLS.Sheet = Book.Sheets(0) \'引用工作簿的第一个工作表 Sheet(i + 2, 9).Value = wfcl.GetComboListString("违法事实",案件编号 = jbxx.DataRows(i)("案件编号")) Next Book.Save("c:\\reports\\test.xlsx") \'保存工作簿 Dim Proc As New Process \'打开工作簿 Proc.File = "c:\\reports\\test.xlsx" Proc.Start()
|
-- 作者:有点甜 -- 发布时间:2017/11/28 14:22:00 -- Sheet(i + 2, 9).Value = wfcl.GetComboListString("违法事实", "案件编号 = \'" & jbxx.DataRows(i)("案件编号") & "\'") |