?
Solved

Printing from RichTextBox then using Printer.Print Causes Margin Problems

Posted on 2004-04-29
5
Medium Priority
?
294 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
 

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses

762 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