Solved

Printing from RichTextBox then using Printer.Print Causes Margin Problems

Posted on 2004-04-29
5
271 Views
Last Modified: 2010-05-02
I am printing from a rich text box using the .selprint method. After the information from the rich text box prints, I want to print more information using the printer.print method. However, when I do this, the text I print using the printer.print method prints over the information printed from the rich text box. The information in the RTB changes, so I can't simple set a constant margin. I guess I need to know how to set the .CurrentY position based on the height of the text in the RTB. Any suggestions?
0
Comment
Question by:kevman123
5 Comments
 
LVL 4

Expert Comment

by:Javin007
ID: 10953168
I know that there's an API to do exactly this, and I've USED it before.  But now, of course, I can't remember it for the life of me.  >:(  What you need to find out is what the api call is to get you the "height" of the lines in the RTB.  Wish I could be of more help.

-Javin
0
 
LVL 18

Expert Comment

by:Sethi
ID: 10957190
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11468889
PAQed - no points refunded (of 500)

modulo
Community Support Moderator
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question