printing current page using python is quit easy. we can use following code to do so.
def PrintOnePage(self, cp, pageNumber):
""" Print the current page on the given device context. Return true if there is still more to print. """ self.currentPage = pageNumber self.CalculateBounds(cp) self.ApplyPageDecorations(cp) for a in self.runningBlocks: a.Print(cp) while len(self.blocks) and self.blocks[0].Print(cp): self.DropCurrentBlock() return len(self.blocks) > 0
No comments:
Post a Comment