Solved

Printing Inverse in VB with HP LaserJet 4si

Posted on 1998-10-22
4
270 Views
Last Modified: 2011-09-20
How do I Print a rectangle with a black background and white text together to a HP LaserJet 4si. NOT Black background with black text and white background. I want the area around the characters to be black also.  VB wonderfully strips chr(27) from anything I  send to the spooler.  Argggg!
0
Comment
Question by:vanmeter
[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
 

Author Comment

by:vanmeter
ID: 1441233
Adjusted points to 400
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1441234
You should be able to change the text background and foreground to give you reverse text. Only problem is that you can't change a dot back to white once it's black. Thus your text will appear in a black stripe, but if you overlay it on a black rectangle you'll get a solid black rectangle. The text is there, you just can't see it.

Solution is to use several rectangles to frame your text. Leave a "hole" in the center for your inverted text. I'll give it a try on my printer and post the code.

M
0
 

Author Comment

by:vanmeter
ID: 1441235
Unfortunately that will not work.  I can put a white rectangle inside a black background fill but it does not accomplish my inverse text requirements.
0
 
LVL 12

Accepted Solution

by:
mark2150 earned 400 total points
ID: 1441236
You need to tape off the area *around* the rectangle. If you make one large black rectangle and *then* overlay a white one, the "white" area will remain black. If you bracket the area you want to invert print in by printing black areas above, below, right and left of it you'll have an *unprinted* area. *THEN* carefully shoot in the inverted text and you should have your fix.

This presumes that inverted text looks ok when printed on a page by itself. If the inverted text comes out as a black stripe you're hosed.

M

0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

696 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