How To Print Multiline Text Box Using Windows API Functions (140886)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q140886 SUMMARY
Printing the Text property of a multiline text box while maintaining the
line structure requires attention to word wrapping, carriage returns, and
line feeds. The programmer can either track the number of characters and
lines in code or use Windows API functions to manipulate the Text property.
This article demonstrates these techniques in a Visual Basic example.
NOTE: 32-bit applications that implement VBA do not support compiler
directives. The sample code only applies to 32-bit implementations of VBA.
REFERENCES
Please see the "Microsoft Windows Programmer's Reference Book and Online
Resource" (Visual Basic Add-on Kit #1-55615-413-5).
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbhowto kbWndw KB140886 |
---|
|