def setReportPages(self, pgs: Any) -> None: """Add pages to actual report.""" self.setReportEngine(None) self.qry_ = None self.xmlData_ = QtXml.QDomNode() self.rptViewer_.setReportPages(pgs.pageCollection() if pgs else 0) self.report_ = self.rptViewer_.reportPages()
def setReportPages(self, pgs): self.setReportEngine(0) self.qry_ = 0 self.xmlData_ = QtXml.QDomNode() self.rptViewer_.setReportPages(pgs.pageCollection() if pgs else 0) self.report_ = self.rptViewer_.reportPages()