Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Controlling HP fonts from BBx VPRO5

Controlling HP fonts from BBx VPRO5

Controlling HP fonts from BBx VPRO5

I am running BBx Visual Pro 5 on Win Xp Pro and using an HP4250 Laser printer.  When I send print jobs, the printer changes my font and pitch.  The print also comes out proportionally spaced, rather than fixed width.  As I am printing medical billing forms, these are being rejected.  I have contacted Basis and they have no solution.  I have contacted HP and as we can print properly through windows based programs, they dont think there is an issue. Does anybody know what the codes are that I can put into the config.bbx file to control the font, pitch and proportional spacing for HP printers?

RE: Controlling HP fonts from BBx VPRO5

What is the alias line for this printer in the config.bbx?

Without this information I can't answer this because the approach to printing through sysprint and direct printing to a device is very different.


RE: Controlling HP fonts from BBx VPRO5

That's what my problem is, I am using the standard information in the config.bbx without a modified alias.  One of Basis's programmers looked at the situation on-site and had no solution.  I am trying to find out how to set the alias in the config file to control the font, pitch and spacing.  

It sounds like, from your comments, that we would be better off printing through the standard printer rather than throuh sysprinter.  Thank you for your time to respond.

RE: Controlling HP fonts from BBx VPRO5

Does your printer entries in the config.bbx look like this:


If so, you are using the sysprint interface which uses the windows printer drivers. You can vary a lot of parameters, as in the following example:

alias PX sysprint "Preview Dialog" PREVIEW,DIALOG,FONT="Courier New",

(all on one line, no spaces between parameters)

Basically, the font/size is determined by the windows driver, using the information in FONT=, COLS= and ROW=.
SPCOLS stands for Standard print, CPCOLS for compressed print. Verify thet the font you specify does exist on your system and that it is a fixed-width (non-proportional) font.
If no font matches your cols/rows/font combination, windows does a best guessing, which might lead to unexpected results.

Using a standard printer (direct adressing, no preview) your alias line could look like this:

alias P4  \\\\NTSERVER\\HPLJ4V    "HP LJ4V ohne Rand" CR=0D,FF=0C,SP=1B266B30531B287333541B266B31312E3548,

(all on one line, no spaces between parameters)

This would connect to the shared printer \\ntserver\HPLJ4, using PCL escape sequences to set parameters for the printer, including paper size/bin, cols, rows, fonts etc. You have the full range of the PCL codes. The parameters are given as HEX codes. PTON= is send when printing starts, PTOFF= is send when printing ends. CP= is send when you switch to compressed print, SP= is send when you switch to standard print.

Does this help?

RE: Controlling HP fonts from BBx VPRO5


Thank you for your help with the issue.  We tried usint the direct printer rather than sysprinter and all we got was garbage.  The commands in the sysprinter alia for controlling the margings worked great and have solved a major portion of our problem.  However, like you stated, windows is adjusting the font size based on the spcols and sprows, so we are experimenting with that.  Another situation that also is confusing the Basis programmer is that no matter what font we set in the alias line, the printer uses courier.  We are in contact with a company that is looking at building a custom print driver that will override any windows based changes to our print commands and print a specified font, pitch and spacing.

Thank you again for the information that resolved a big portion of this issue.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close