I am using a Rich TextBox Control in an application and print the content using the selprint method. I need to set up the margins of the printed output, however. Does anyone know how to go about it? Apparently this can be done in VB by using the EM_FORMATRANGE message (
http://support.microsoft.com/support/kb/articles/Q146/0/22.asp includes an illustration for using EM_FORMATRANGE in VB to print the contents of a RichTextBox with the specified margins). Is it possible to use a similar routine under VFP or is there some other way to set the margins?
Laris