Solved

Richtextbox

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

932 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

12 Experts available now in Live!

Get 1:1 Help Now