首页 > 解决方案 > 如何使用shellexecute打印包含多个工作表的exceldocument

问题描述

我在打印 exeldocument 的应用程序中有一个 shellcommand。

p1 = 'print'
p2 = 'c:\mydir\myexcel.xlsx'
p3 = ''
p4 = ''
p5 = 8
ShellExecute(GetDesktopWindow(),p1,p2,p3,p4,p5)

这很好用。

现在有多个工作表(底部的选项卡)的 excel 文件。如何强制 Shellexecute 打印所有工作表?

(我的应用程序在具有多个客户端的服务器上运行,因此需要一个支持所有客户端的解决方案)。

标签: excelwindowsclarion

解决方案


我认为 ShellEx 不会为此提供解决方案。有第三方 Clarion 解决方案可以做到这一点(EasyExcel 和 Capesoft OfficeInside),但两者都不是免费的。


推荐阅读