Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:【求助】求助老师,用excel报表如何打印窗口表中符合条件的数据

1楼
王小风 发表于:2025/2/24 18:18:00
For Each a As Row In Tables("备件出入库") ' 判断是否打印值,如果是false  则循环标记为true
    If a("是否打印") = True Then
        e.Cancel = True
        Exit For
    Else
        a("是否打印") = True
    End If
Next
Dim Book As New XLS.Book(ProjectPath & "Attachments\入库单.xls")
Dim fl As String = ProjectPath & "Reports\入库单.xls"
Book.Build() '生成细节区
' Book.Sheets(0).Rows.RemoveAt(0) '删除第一行,Excel报表的第一行通常是标记行
Book.Save(fl) '保存工作簿
Dim Proc As New Process '打开工作簿
Proc.File = fl
Proc.Start()
这样的打印只能打印选定行的数据,如何写打印表中复合条件的数据
2楼
有点蓝 发表于:2025/2/24 20:02:00
这种?http://www.foxtable.com/webhelp/topics/0201.htm
共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02344 s, 2 queries.