Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Richtextbox

Posted on 1998-11-10
4
Medium Priority
?
278 Views
Last Modified: 2010-04-30
vb version 5.0
When trying to print using a richtextbox via
richtextbox1.selprint (printer.hDc) ect..
or commondialog1.hdc

only a quarter of a page is actually printed on
HP printers and Epsons anything else is fine

note all drivers are current

Please help
0
Comment
Question by:scimacon
[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
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
mark2150 earned 400 total points
ID: 1444084
Umm, could be a couple of things. First check your RightMargin setting and make sure it's > 0. This causes no end of problems with formatting.

When you say "only a quarter of a page is actually printed" do you mean that the printing is confined to one corner of the page, or only 1/4 of your RTB's contents shows up?

Are you doing a Printer.Print "" just prior to your .SelPrint(printer.hDc) to initialize the hDc? This is required, but buried in the docs.

There are *KNOWN BUGS* with the hp printer drives (even the most current!). I have a program that demos one of them where circles that are supposed to be transparent/unfilled are printing as filled no matter what. (The workaround is to print the circle as two 180 degree arcs...) Bug demo program is on my homepage:

www.hostpc.net/madmark

M

0
 

Author Comment

by:scimacon
ID: 1444085
Dear mark2150
I have already done what you have suggested prior to asking the experts, but this problem
still stands, any other alternatives ?

Are there any patches / fixes from the VB team or is it a HARDWARE problem conflicting
with VB,

PS is VB6 any better
Yours Scimacon.

0
 
LVL 12

Expert Comment

by:mark2150
ID: 1444086
You didn't answer my question about 1/4 page. Alternatives depend on that.

I've gotten printing of most everything to work well. Sometimes with workarounds (like the two 180 degree arcs thing). I have a customer that has several different printers. It was real frustrating that the *same* code would work perfect on his CopyJet but would fail miserably on any of the other printers (LaserJet, InkJet, etc.) We D/L'd the most current drivers, etc. - no help. Tech support was useless. We figured it out on our own.

M

0
 

Author Comment

by:scimacon
ID: 1444087
Yes, only 1/4 of the RTB's contents shows up?
 
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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…
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…
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

660 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