Solved

Printing from RichTextBox then using Printer.Print Causes Margin Problems

Posted on 2004-04-29
5
266 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB error "Type mismatch" 2 53
VBA open file from excel cell 4 42
Exit a vb6 apps when a calling it apps closes 15 47
Add and format columns in vb6 7 56
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

776 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