PyCPrintInfo Object
Encapsulates an MFC CPrintInfo class, its member CPrintDialog class, and the PRINTDLG structure member of the CPrintDialog.
Methods
- DocObject
- A flag indicating whether the document being printed is a DocObject.
- GetDwFlags
- A flags specifying DocObject printing operations. Valid only if data member m_bDocObject is TRUE.
- SetDwFlags
- Set a flag specifying DocObject printing operations. Valid only if data member m_bDocObject is TRUE.
- GetDocOffsetPage
- Get the number of pages preceding the first page of a particular DocObject in a combined DocObject print job.
- SetDocOffsetPage
- Set the number of pages preceding the first page of a particular DocObject in a combined DocObject print job.
- SetPrintDialog
- Set a pointer to the CPrintDialog object used to display the Print dialog box for the print job.
- GetDirect
- TRUE if the Print dialog box will be bypassed for direct printing; FALSE otherwise.
- SetDirect
- Sets to TRUE if the Print dialog box will be bypassed for direct printing; FALSE otherwise.
- GetPreview
- A flag indicating whether the document is being previewed.
- SetPreview
- Set whether the document is being previewed.
- GetContinuePrinting
- A flag indicating whether the framework should continue the print loop.
- SetContinuePrinting
- Set whether the framework should continue the print loop.
- GetCurPage
- Get the number of the current page.
- SetCurPage
- Set the number of the current page.
- GetNumPreviewPages
- Get the number of pages displayed in preview mode.
- SetNumPreviewPages
- Set the number of pages displayed in preview mode.
- GetUserData
- Get a user-created structure.
- SetUserData
- Set a user-created structure.
- GetDraw
- Get the usable drawing area of the page in logical coordinates.
- SetDraw
- Set the usable drawing area of the page in logical coordinates.
- GetPageDesc
- Get the format string used to display the page numbers during print preview
- SetPageDesc
- Set the format string used to display the page numbers during print preview
- GetMinPage
- Get the number of the first page of the document.
- SetMinPage
- Set the number of the first page of the document.
- GetMaxPage
- Get the number of the last page of the document.
- SetMaxPage
- Set the number of the last page of the document.
- GetOffsetPage
- Get the number of pages preceding the first page of a DocObject item being printed in a combined DocObject print job.
- GetFromPage
- The number of the first page to be printed.
- GetToPage
- The number of the last page to be printed.
- SetHDC
- Sets the printer DC compatible with the users choices, call after the print dialog DoModal finishes.
- CreatePrinterDC
- Handle to the newly created printer device context, call only after DoModal finishes.
- DoModal
- Call DoModal on the dialog.
- GetCopies
- The number of copies requested, call only after DoModal finishes.
- GetDefaults
- Retrieves device defaults without displaying a dialog box.
- FreeDefaults
- After a call to GetDefaults, and you are through with the CPrintDialog object, this call deletes the printer DC and calls GlobalFree function on the handles.
- GetDeviceName
- The name of the currently selected printer, call only after DoModal finishes.
- GetDriverName
- The name of the currently selected printer device driver, call only after DoModal finishes.
- GetDlgFromPage
- Retrieves the starting page of the print range.
- GetDlgToPage
- Retrieves the ending page of the print range.
- GetPortName
- The name of the currently selected printer port, call only after DoModal finishes.
- GetPrinterDC
- A handle to the printer device context if successful; otherwise NULL. If the bPrintSetupOnly parameter of the CPrintDialog constructor was FALSE (indicating that the Print dialog box is displayed), then GetPrinterDC returns a handle to the printer device context. You must call the WindowsDeleteDC function to delete the device context when you are done using it.
- PrintAll
- Nonzero if all pages in the document are to be printed; otherwise 0, call only after DoModal finishes.
- PrintCollate
- Nonzero if the user selects the collate check box in the dialog box; otherwise 0, call only after DoModal finishes.
- PrintRange
- Nonzero if only a range of pages in the document are to be printed; otherwise 0, call only after DoModal finishes.
- PrintSelection
- Nonzero if only the selected items are to be printed; otherwise 0., call only after DoModal finishes
- GetHDC
- Identifies a device context or an information context, depending on whether the Flags member specifies the PD_RETURNDC or PC_RETURNIC flag. If neither flag is specified, the value of this member is undefined. If both flags are specified, PD_RETURNDC has priority.
- GetFlags
- A set of bit flags that you can use to initialize the Print common dialog box. When the dialog box returns, it sets these flags to indicate the user's input.
- SetFlags
- A set of bit flags that you can use to initialize the Print common dialog box. When the dialog box returns, it sets these flags to indicate the user's input.
- SetFromPage
- The number of the first page to be printed.
- SetToPage
- The number of the first page to be printed.
- GetPRINTDLGMinPage
- Get the minimum value for the page range specified in the From and To page edit controls. If nMinPage equals nMaxPage, the Pages radio button and the starting and ending page edit controls are disabled.
- SetPRINTDLGMinPage
- Set the minimum value for the page range specified in the From and To page edit controls. If nMinPage equals nMaxPage, the Pages radio button and the starting and ending page edit controls are disabled.
- GetPRINTDLGCopies
- Gets the initial number of copies for the Copies edit control if hDevMode is NULL; otherwise, the dmCopies member of the DEVMODE structure contains the initial value.
- SetPRINTDLGCopies
- Sets the initial number of copies for the Copies edit control if hDevMode is NULL; otherwise, the dmCopies member of the DEVMODE structure contains the initial value.