Therefore calling this function from a thread that manages interaction with the user interface could make the application appear to be unresponsive. The handle pointed to by phPrinter is not thread safe. If callers need to use it concurrently on multiple threads, they must provide custom synchronization access to the printer handle using the Synchronization Functions.
To avoid writing custom code the application can open a printer handle on each thread, as needed. The pDefault parameter enables you to specify the data type and device mode values that are used for printing documents submitted by the StartDocPrinter function. However, you can override these values by using the SetJob function after a document has been started. You can call the OpenPrinter function to open a handle to a print server or to determine the access rights that a client has to a print server.
When you finish with the handle, pass it to the ClosePrinter function to close it. The access rights can be one of the following. Skip to main content. This browser is no longer supported.
This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Is this page helpful? Gets a value that indicates whether the Component is currently in design mode. Gets or sets the document name to display for example, in a print status dialog box or printer queue while printing the document. Gets the list of event handlers that are attached to this Component. Gets or sets a value indicating whether the position of a graphics object associated with a page is located just inside the user-specified margins or at the top-left corner of the printable area of the page.
Gets or sets the ISite of the Component. Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. Releases all resources used by the Component. Releases the unmanaged resources used by the Component and optionally releases the managed resources. Retrieves the current lifetime service object that controls the lifetime policy for this instance. Returns an object that represents a service provided by the Component or by its Container.
Gets the Type of the current instance. Creates a shallow copy of the current Object. Creates a shallow copy of the current MarshalByRefObject object. Raises the BeginPrint event. It is called after the Print method is called and before the first page of the document prints. Raises the EndPrint event.
It is called when the last page of the document has printed. These pages have a printer friendly option which is just the same url with an additional parameter. This discussion thread is closed Start new discussion. Similar topics. NET Framework. Security vulnerability caused by MSDN page for sscanf. Visual Basic. Mobile Development. Software Development. Remote Development and Debugging Tools.
Nested class structure question. Opening Balance.
0コメント