Solved

Printing from RichTextBox then using Printer.Print Causes Margin Problems

Posted on 2004-04-29
5
255 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
Comment Utility
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
Comment Utility
0
 

Accepted Solution

by:
modulo earned 0 total points
Comment Utility
PAQed - no points refunded (of 500)

modulo
Community Support Moderator
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now