Solved

Printing Inverse in VB with HP LaserJet 4si

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
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 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…

730 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