Contents Index Topic Contents | ||
Previous Topic: IFileViewer Next Topic: IFileViewer::Show |
IFileViewer::PrintTo
HRESULT PrintTo( LPSTR pszDriver, BOOL fSuppressUI );Prints a file. The shell specifies the name of the file to print by calling the file viewer's IPersistFile::Load method.
- Returns the NOERROR value if successful, or an OLE-defined error value otherwise.
- pszDriver
- Address of a buffer that contains the name of the printer device driver that should print the file. If this parameter is NULL, the file viewer determines which device driver to use.
- fSuppressUI
- User interface suppression flag. If this parameter is TRUE, the file viewer should not display any user interface, including error messages, during the print operation. If this parameter is FALSE, the file viewer can show dialog boxes, as needed.
See also IFileViewer
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.