Skype:TextControlSupport
Orders:877-462-4772
TX Text Control - word processing components.
What is this?Syndicate this content

Adding enhanced print preview with Visual Basic

This source code snippet requires TX Text Control ActiveX
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 Download [7.28 KB, 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:

  1. frmPrintPreview.TextControl = TxTextControl1
  2. frmPrintPreview.Show

 

 

 

top

Top 10 Bestselling Product Award 2007Top 25 Publisher Product Award 2007Top 10 Bestselling Product Award 2007 in JapanTop 25 Bestselling Product Award 2006Top 25 Bestselling Publisher Award 2006Reader's Choice Award, dot.net magazin, 3rd place