Solved

Richtextbox

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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Suggested Courses
Course of the Month6 days, 22 hours left to enroll

623 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