以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- excel报表,利用<M>自动合并单元格,跨页了,该怎么处理啊? (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=153652) |
||||
-- 作者:guosheng -- 发布时间:2020/8/18 13:40:00 -- excel报表,利用<M>自动合并单元格,跨页了,该怎么处理啊? ![]() ![]() |
||||
-- 作者:有点蓝 -- 发布时间:2020/8/18 14:01:00 -- 您想怎么处理? |
||||
-- 作者:guosheng -- 发布时间:2020/8/18 14:03:00 -- 如果合并的单元格跨页了,可以把合并的单元格 拆成上下两个单元格? |
||||
-- 作者:有点蓝 -- 发布时间:2020/8/18 14:41:00 -- 只能生成报表后,使用代码设置一下第一行和最后一行的表格线:http://www.foxtable.com/webhelp/topics/1163.htm |
||||
-- 作者:guosheng -- 发布时间:2020/8/20 14:12:00 -- Dim fl As String Dim sss As String=_UserGroup Dim Book As New XLS.Book(ProjectPath & "Attachments\\周报样式.xlsx") \'打开模板 fl= ProjectPath & "Reports\\周报样式.pdf" If FileSys.DirectoryExists(ProjectPath & "Reports\\") = False Then FileSys.CreateDirectory(ProjectPath & "Reports\\") End If 加了绿色阴影的部分没有起到在表的开头和结尾画出横线的作用,怎么回事啊? Dim Sheet As XLS.Sheet = Book.Sheets(0) …… book.AddDataTable("周报明细表","cs2",filter0) Dim Style As XLS.Style = Book.NewStyle() \'定义新样式 Style.BorderTop = XLS.LineStyleEnum.Thin Style.BorderBottom = XLS.LineStyleEnum.Thin Book.Build() \'生成报表 Book.SaveToPDF(fl) \'保存为PDF文件 Dim Proc As New Process \'打开PDF文件 Proc.File = fl Proc.Start()
|
||||
-- 作者:有点蓝 -- 发布时间:2020/8/20 14:16:00 -- 请上传实例说明 |
||||
-- 作者:guosheng -- 发布时间:2020/8/21 9:17:00 --
命令窗口运行代码: Dim fl As String Dim Book As New XLS.Book(ProjectPath & "Attachments\\周报样式.xlsx") \'打开模板 fl= ProjectPath & "Reports\\周报样式.pdf" If FileSys.DirectoryExists(ProjectPath & "Reports\\") = False Then FileSys.CreateDirectory(ProjectPath & "Reports\\") End If \'book.AddDataTable("周报明细表","cs2",filter0) \' \' Book.Build() \'生成报表 Dim Style As XLS.Style = Book.NewStyle() \'定义新样式 Style.BorderTop = XLS.LineStyleEnum.Thin Style.BorderBottom = XLS.LineStyleEnum.Thin Book.SaveToPDF(fl) \'保存为PDF文件 Dim Proc As New Process \'打开PDF文件 Proc.File = fl Proc.Start() |
||||
-- 作者:有点蓝 -- 发布时间:2020/8/21 9:29:00 -- 到模板里设置一下即可。不需要写代码控制:https://jingyan.baidu.com/article/6d704a136ce7ad28db51cab2.html [此贴子已经被作者于2020/8/21 9:29:28编辑过]
|
||||
-- 作者:guosheng -- 发布时间:2020/8/21 10:03:00 -- ![]() ![]() 如何让合并单元格的分类名称,也能够跨页显示啊?多谢了
|
||||
-- 作者:有点蓝 -- 发布时间:2020/8/21 10:17:00 -- 没有办法 |