|Type||Topic||Plugin||Version||macOS||Windows||Linux||Console & Web||iOS|
|class||Printing||MBS Win Plugin||12.1||No||Yes||No||Yes, Windows only||No|
- 15 properties
- property Copies as Integer
- property DC as Integer
- property DevMode as WindowsDeviceModeMBS
- property ExclusionFlags as Integer
- property Flags as Integer
- property FromPage as Integer
- property Lasterror as Integer
- property MaxPage as Integer
- property MaxPageRanges as Integer
- property MinPage as Integer
- property PageRanges as Integer
- property Parent as Window
- property ResultAction as Integer
- property StartPanel as Integer
- property ToPage as Integer
- 7 methods
- method Constructor
- method GetDevNames(byref DriverName as string, byref DeviceName as string, byref OutputName as string, byref flags as Integer) as boolean
- method getPageRange(index as Integer, byref fromPage as Integer, byref toPage as Integer)
- method PrintDialog as boolean
- method PrintDialogEx as boolean
- method SetDevNames(DriverName as string, DeviceName as string, OutputName as string, flags as Integer) as boolean
- method setPageRange(index as Integer, fromPage as Integer, toPage as Integer)
- 26 constants
- const START_PANEL_GENERAL = &hffffffff
The default flag that indicates that the All radio button is initially selected.
This flag is used as a placeholder to indicate that the PD_PAGENUMS, PD_SELECTION, and PD_CURRENTPAGE flags are not specified.
If this flag is set, the Collate check box is selected.
If this flag is set when the PrintDlgEx function returns, the application must simulate collation of multiple copies. For more information, see the description of the PD_USEDEVMODECOPIESANDCOLLATE flag.
If this flag is set, the Current Page radio button is selected. If none of the PD_PAGENUMS, PD_SELECTION, or PD_CURRENTPAGE flags is set, the All radio button is selected.
Disables the Print to File check box.
Indicates that the ExclusionFlags member identifies items to be excluded from the printer driver property pages.
If this flag is not set, items will be excluded by default from the printer driver property pages. The exclusions prevent the duplication of items among the General page, any application-specified pages, and the printer driver pages.
Excludes the Copies and Collate controls from the printer driver property pages in a Print property sheet. This flag should always be set when the application uses the default Copies and Collate controls provided by the lower portion of the General page of the Print property sheet.
Hides the Print to File check box.
Disables the Current Page radio button.
Hides and disables the Network button.
Disables the Pages radio button and the associated edit controls.
Also, it causes the Collate check box to appear in the dialog.
Disables the Selection radio button.
Prevents the warning message from being displayed when an error occurs.
If this flag is set, the Pages radio button is selected. If none of the PD_PAGENUMS, PD_SELECTION, or PD_CURRENTPAGE flags is set, the All radio button is selected. If this flag is set when the PrintDialog function returns, the PageRanges member indicates the page ranges specified by the user.
Causes the system to display the Print Setup dialog box rather than the Print dialog box.
If this flag is set, the Print to File check box is selected.
If this flag is set when PrintDialog returns, the OutputName of DevNames contains the string "FILE:". When you call the StartDoc function to start the printing operation, specify this "FILE:" string in the Output parameter member of the DOCINFO structure. Specifying this string causes the print subsystem to query the user for the name of the output file.
StartDoc is available in our plugins through StartDocPrinter in WindowsAddPrintJobMBS class.
Causes PrintDialog to return a device context matching the selections the user made in the property sheet.
The device context is returned in DC property.
If this flag is set, the PrintDialog function does not display the property sheet.
Instead, it sets the DevNames and DevMode members to the default for the system default printer. Both DevNames and DevMode must be empty, or PrintDialog returns an error.
Similar to the PD_RETURNDC flag, except this flag returns an information context rather than a device context.
If neither PD_RETURNDC nor PD_RETURNIC is specified, hDC is undefined on output.
If this flag is set, the Selection radio button is selected.
If none of the PD_PAGENUMS, PD_SELECTION, or PD_CURRENTPAGE flags is set, the All radio button is selected.
Causes the dialog box to display the Help button.
Same as PD_USEDEVMODECOPIESANDCOLLATE.
This flag indicates whether your application supports multiple copies and collation.
Set this flag on input to indicate that your application does not support multiple copies and collation. In this case, the Copies member of the class always returns 1, and PD_COLLATE is never set in the Flags member.
If this flag is not set, the application is responsible for printing and collating multiple copies. In this case, the Copies property indicates the number of copies the user wants to print, and the PD_COLLATE flag in the Flags member indicates whether the user wants collation.
Regardless of whether this flag is set, an application can determine from Copies and PD_COLLATE how many copies to render and whether to print them collated.
If this flag is set and the printer driver does not support multiple copies, the Copies edit control is disabled. Similarly, if this flag is set and the printer driver does not support collation, the Collate check box is disabled.
The user clicked the Apply button and later clicked the Cancel button. This indicates that the user wants to apply the changes made in the property sheet, but does not yet want to print. The WindowsPrintDialogMBS contains the information specified by the user at the time the Apply button was clicked.
The user clicked the Cancel button. The information in the WindowsPrintDialogMBS is unchanged.
The user clicked the Print button. The WindowsPrintDialogMBS contains the information specified by the user.
This class has no sub classes.
Some examples which use this class:
The items on this page are in the following plugins: MBS Win Plugin.
MBS Xojo tutorial videos