print a rich text box with margins in visual basic

The following Visual Basic project contains the source code and Visual Basic examples used for print a rich text box with margins. 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.
The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.

Project Files: 

File NameSize