Solved

Richtextbox

Posted on 1998-11-10
4
265 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 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

Industry Leaders: 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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

751 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