excel文件中有多个sheet,想将所有的sheet合到一次打印,该怎么搞?
我现在用_Workbook.PrintOut,但是这样每个sheet都是分开打印的。
我现在用_Workbook.PrintOut,但是这样每个sheet都是分开打印的。
解决方案 »
- RGB值有小数的情况吗?
- MINIDUMP_TYPE求解释
- 类型**的简单问题
- 在 vc++中怎么将 select count(*) from table 的返回值传给一个变量
- VC控件位置大小调整2?
- 弱弱的问:学习mfc编程是不是装vc就行了,还是装个其它的什么东东,或者直接在os下直接可以调用程序?
- 用CBitmap::CreateCompatibleBitmap创建位图如何最后将其保存了一个bmp文件啊?
- 关于CDialog的很菜的问题
- MFC给cstatic的派生类添加滚动条消息响应
- !!!!!!!!!!!!!!!!中国程序员最缺的是什么?技术还是创意.
- 2个关于菜单的ID问题
- VC6.0调试导致死机
你可以看看里面的参数设置,可以一次性打印所有的页.
Optional Object. The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning.To
Optional Object. The number of the last page to print. If this argument is omitted, printing ends with the last page.Copies
Optional Object. The number of copies to print. If this argument is omitted, one copy is printed.Preview
Optional Object. True to have Microsoft Excel invoke print preview before printing the object. False (or omitted) to print the object immediately.ActivePrinter
Optional Object. Sets the name of the active printer.PrintToFile
Optional Object. True to print to a file. If PrToFileName is not specified, Microsoft Excel prompts the user to enter the name of the output file.Collate
Optional Object. True to collate multiple copies.PrToFileName
Optional Object. If PrintToFile is set to True, this argument specifies the name of the file you want to print to.
这些参数都没有设置打印所有sheet的选项啊!谁能告诉我该设置哪个啊?谢谢了
如果你是用SHEET打印,则是打印当前的SHEET.
所以,只要是WORKBOOK打印,就会打印全部的SHEET,用不着设置是否是打印所有SHEET了,
如果你是用SHEET打印,则是打印当前的SHEET.
所以,只要是WORKBOOK打印,就会打印全部的SHEET,用不着设置是否是打印所有SHEET了,