Application.Dialogs(xlDialogPrint).Show一次只能打印2页

时间:2016-09-21 01:22:14

标签: excel vba printing

所以,我已经为excel表写了这个表单叠加层。长话短说,所有的价值观都以细胞结束(惊喜!)。然后我预设了一个打印输出区域,打印按钮调用

    <dependency>
        <groupId>org.thymeleaf</groupId>
        <artifactId>thymeleaf</artifactId>
        <version>3.0.1.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.thymeleaf</groupId>
        <artifactId>thymeleaf-spring4</artifactId>
        <version>3.0.1.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>nz.net.ultraq.thymeleaf</groupId>
        <artifactId>thymeleaf-layout-dialect</artifactId>
        <version>2.0.3</version>
    </dependency>

但每次,无论打印多少页面都输入,我打印出2份副本..什么?! 我知道你可以使用:

Application.Dialogs(xlDialogPrint).Show

但这只是一个预设,所以你不必自己投入。

有没有人知道为什么excel表现得像打印机修剪?

1 个答案:

答案 0 :(得分:0)

我找到了原因(至少在我的情况下)。当我按下打印时,弹出窗口隐藏在我的表单后面,然后用excel关闭,所以我从未见过它。由于某种原因(不是excel或代码),打印机或网络触发了数据大小过载&#34;在我的印刷工作。解释如何一次打印100页的页面可能会导致打印机遇到内存问题。出于某种原因,我的8页打印输出触发了......但是像所有其他魔法一样,它在某些时候解决了它。