If the DocumentProperties function with these parameters is successful, the return value of AdvancedDocumentProperties is 1. InputDevMode: The device mode structure that contains the configuration data used to initialize the controls of the printer-configuration dialog box. OutputDevMode: The device mode structure that will contain the configuration data specified by the user. Parent: The parent window of the printer-configuration dialog box. This function is a special case of the DocumentProperties function. AdvancedDocumentProperties(InputDevMode as WindowsDeviceModeMBS, byref OutputDevMode as WindowsDeviceModeMBS, parent as DesktopWindow) as integerĭisplays a printer-configuration dialog box for the specified printer, allowing the user to configure that printer. If form points to a Mode 2 form, then AddForm will fail if either a form with the specified name already exists or the Keyword value already exists. Calling this function from a thread that manages interaction with the user interface could make the application appear to be unresponsive.Īn application can determine which forms are available for a printer by calling the GetPrinterFormats function. How quickly this function returns depends on run-time factors such as network status, print server configuration, and printer driver implementation-factors that are difficult to predict when writing an application. Note: This is a blocking or synchronous function and might not return immediately. Returns true if the function succeeds and false if the function fails. Must be either 1 (old version) or 2 (newer version). Dim w as new WindowsPrinterMBS( WindowsPrinterMBS.GetDefaultPrinter)įorm.Mode gives level of the data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |