| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > PrintPreviewClass > PrintPreviewClass Methods >====== SetDefaultPages (set the default pages to print) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[setzoompercentile set user or standard zoom factor .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[syncimagequeue sync image queue with pagestoprint .htm|{{btn_next_n.gif|Next page}}]] | | || **SetDefaultPages, VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} The **SetDefaultPages** method sets the initial value of the PagesToPrint property. The initial value is 1-//n//, where //n //is equal to the total number of pages in the report. **Implementation:** The Display and AskPrintPreview methods call the SetDefaultPages method. **Example:** **!Virtual implementation of SetDefaultPages method** **PrintPreviewClass.SetDefaultPages PROCEDURE** **  CODE** **  SELF.PagesToPrint = '1-' & RECORDS(SELF.ImageQueue)** **See Also:     **[[pagestoprint the pages to print .htm|PagesToPrint]]