Dim y As Integer = Date.Today.Year
Dim m As Integer = Date.Today.Month
Dim dt1 As New Date(y, m, 1)
Dim dt2 As New Date(y, m, Date.DaysInMonth(y, m)) '获取本月的最后一天
Dim Book As New XLS.Book(ProjectPath & "Attachments\QR755-002领料清单.xls") '打开模板
Dim fl As String = ProjectPath & "Reports\QR755-002领料清单.xls"
Dim Sheet As XLS.Sheet = Book.Sheets(1)
Sheet(6,11).Value = "<统计日期 >= #" & dt1 & "# And 统计日期 <= #" & dt2 & "# and 物资说明='紧固件'>" '写入打印条件
Book.Build() '生成报表
Book.Save(fl)
Dim Proc As New Process
Proc.File = fl
Proc.Start()
.NET Framework 版本:2.0.50727.8762
Foxtable 版本:2018.3.9.1
错误所在事件:
详细错误信息:
语法错误:“y”运算符后缺少操作数。
请教是什么问题?