Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Printing from RichTextBox then using Printer.Print Causes Margin Problems

Posted on 2004-04-29
5
Medium Priority
?
301 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses

618 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