Solved

Richtextbox

Posted on 1998-11-10
4
244 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
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
mark2150 earned 200 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…

759 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

21 Experts available now in Live!

Get 1:1 Help Now