Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以重置 reportRun 类的 totalPages() 方法返回的值?
我有一份包含多张发票的报告,我想为每张提取的发票重置 totalPages() 值。
我试图在我的报告的 fetch() 方法中使用 element.reset() 并且它不起作用,它按发票拆分我的报告。
不,这是不可能的。
该reset方法可以解决问题,但会像您观察到的那样拆分报告。
reset
除非您的线完全适合一条线,否则无法预先计算该值。