Solved

HP LJ1200 Setting FORMLINES

Posted on 2001-07-25
4
268 Views
Last Modified: 2013-12-15
In the past I used a string of ASCII to change formlines on LJ1100 from default of 60 to 66:  27 38 108 54 54 80
Now trying same on LJ1200 and it just prints the characters on paper, which leads me to believe that the escape character is different.  Would appreciate characters needed or a better method.  Thanks.
0
Comment
Question by:sjulian
[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
 
LVL 12

Expert Comment

by:DRRYAN3
ID: 6324959
You cannot send straight ASCII codes to the printer, they must be converted into the actual characters represented by the ASCII numeric code.  Most DOS applications provide a way to do this by entering the printer escape codes.

What software are you trying to use?
0
 

Author Comment

by:sjulian
ID: 6326761
I used a Visual Basic exe to send the string to the printer.  Code below:

Private Sub cmdOk_Click()
'RADIO BUTTONS ALLOW USER TO SELECT WHAT VALUE TO SET FORMLINES
If opt66.Value = True Then
  Printer.Print Chr$(27); Chr$(38); Chr$(108); Chr$(54);  Chr$(54); Chr$(80)
Else
  If opt60.Value = True Then
    Printer.Print Chr$(27); Chr$(38); Chr$(108); Chr$(54); Chr$(48); Chr$(80)
  End If
End If
Printer.EndDoc
Close
End
End Sub

Private Sub Form_Load()
    CommonDialog1.ShowPrinter
End Sub

0
 
LVL 12

Accepted Solution

by:
DRRYAN3 earned 125 total points
ID: 6327318
I think that the Windows printer driver is your problem.  You will have to set the style you want using the Windows printer API calls.
0
 

Author Comment

by:sjulian
ID: 6327402
I got an answer from HP, but it was wrong.  All that has to be done is to start the HP Configuration Utility, and change the form lines setting.  Simple Huh?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

How to solve seemingly unsolvable printer issues. Users sometimes run into printing issues where all the normal steps do not seem to work. Well the steps below can show users how to take one extra step beyond the normal steps needed to remove old…
Causes of paper jams:The following are the main causes of paper jams. Guides:If the guides for the paper are not set correctly they may cause the paper to enter at an angle. You should ensure that the guides are set correctly for the paper type a…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

734 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