Custom Print Dialog for RichTextBox Control
Version Compatibility: Visual Basic 6, Visual Basic 5
The epCmDlg user control used in various Text/RTF Editors contained on this site do not actually call the Page Setup functionality correctly to allow the user to actually set page margins. This module allows the user to set the page margin in twips and will then display the printer page setup dialog using the correct values for their locale. The comments explain clearly how the module works.
Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.