[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 275
  • Last Modified:

Printing Inverse in VB with HP LaserJet 4si

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
vanmeter
Asked:
vanmeter
  • 2
  • 2
1 Solution
 
vanmeterAuthor Commented:
Adjusted points to 400
0
 
mark2150Commented:
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
 
vanmeterAuthor Commented:
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
 
mark2150Commented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now