excel - 如何使用shellexecute打印包含多个工作表的exceldocument
问题描述
我在打印 exeldocument 的应用程序中有一个 shellcommand。
p1 = 'print'
p2 = 'c:\mydir\myexcel.xlsx'
p3 = ''
p4 = ''
p5 = 8
ShellExecute(GetDesktopWindow(),p1,p2,p3,p4,p5)
这很好用。
现在有多个工作表(底部的选项卡)的 excel 文件。如何强制 Shellexecute 打印所有工作表?
(我的应用程序在具有多个客户端的服务器上运行,因此需要一个支持所有客户端的解决方案)。
解决方案
我认为 ShellEx 不会为此提供解决方案。有第三方 Clarion 解决方案可以做到这一点(EasyExcel 和 Capesoft OfficeInside),但两者都不是免费的。
推荐阅读
- html - HTML/CSS - 媒体查询中的文本对齐无效
- mongodb - Mongo MQL 按日期分组并添加其他字段值的计数
- elasticsearch - Elasticsearch 没有在搜索结果中返回我期望的文档
- html - 触发路由转换/动画后,路由将更改
- spring-mvc - Spring 安全问题:编码密码看起来不像 BCrypt
- r - 在 EC2 服务器上分析 R 中的大数据
- excel - 使用一个变量来引用其他变量?
- powershell - ForEach 真的是 ForEach-Object (Powershell) 的别名吗
- linux - 如何在linux shell脚本中获取多个子进程退出状态是失败还是成功
- google-sheets - 我如何通过自动选择正确的日期范围(周一至周日)来获得谷歌表格加起来的时间