by Dasith Wijesiriwardena (2 Submissions)
Category: Complete Applications
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (21 Votes)
By Dasith,
This example shows you how to WYSIWYG Print and Print Preview using EM_FORMATRANGE and EM_SETTARGETDEVICE. The Print Preview can easily be used in your own project and it is fully customizable.
The problem with RTF.SelPrint is that you have no control over the print process (margins and etc.)
This shows you how to use you own Print function.
The Print Preview feature is not 100% accurate though. Still working on it.
If any of you guys develop this further please let me know.