| Skype: | TextControlSupport | |
| Orders: | 877-462-4772 |

| Author: | TX Text Control Support Department |
| Language: | Visual Basic |
| Version: | 1.1 |
| Released: | June 29, 2001 |
| Last modified: | January 11, 2008 |
| Requirements: | TX Text Control ActiveX with Visual Basic |
| Download code: | print_preview.zip |
Visual Basic users are jealous people. Well, at least when it comes to adding a print preview to their applications, and they see how easily the C++ guys do it by simply calling a function in their MFC library. You may have seen the MFC print preview in TX Text Control's TXWords sample program.
To give you the same feature in VB, this week's installment of our Tips and Tricks series is about a reusable form, which has the same professional look-and-feel as its C++ counterpart, but is 100% VB code. You just need to add it to your VB6 project, and call it with 2 these lines of code:
frmPrintPreview.TextControl = TxTextControl1 frmPrintPreview.Show