Solved

Printing Inverse in VB with HP LaserJet 4si

Posted on 1998-10-22
4
264 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
  • 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

747 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

13 Experts available now in Live!

Get 1:1 Help Now