Print a Rich Text Box with Margins

Category:
Forms and Controls
Type:
Snippets
Difficulty:
Advanced

Author: Intelligent Solutions Inc.

Version Compatibility: Visual Basic 5

More information:
This function allows you to set margins when printing the contents of a rich text box. The margin parameters are set in inches. See comments for details.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: