The information in this article applies to:
SUMMARYThe SelPrint Function of the RichTextBox Control now has an optional second parameter that is not documented in the Online Help. The information below can also be found in the Readmevb.htm on the Visual Basic 6.0 CD. MORE INFORMATIONRichTextBox Control: SelPrint Method Has New ArgumentThe SelPrint method now features a second, optional argument. The syntax and part descriptions are shown below:Syntax object.SelPrint(lHDC As Long, [vStartDoc]) The SelPrint method syntax has these parts:
The settings for vStartDoc are:
Remarks: The argument was added to remedy situations when printers do not print with the default behavior. When the SelPrint method is invoked, both Visual Basic and the RichTextBox control send startdoc and enddoc commands to the printer resulting in a nested pair of startdoc/enddoc commands. Some printers respond only to the first pair of commands and thereby become disabled when the RichTextbox control sends the second pair. In that case, setting the vStartDoc argument to False prevents the second pair of commands from being sent. REFERENCES
Readmevb.htm, Visual Basic 5.0, Visual Basic CD
Q184899 : PRB: SelPrint Method Issues an EndDoc When Printing Additional query words: kbDSupport kbDSD kbCtrl kbPrinting kbVBp600
Keywords : kbGrpVB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |