Solved

HP LJ1200 Setting FORMLINES

Posted on 2001-07-25
4
273 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

This seems to be a very common error related to the Samsung printer driver. First, this is the error we're talking about: Log: System Type: Error Event: 7000 Agent Time: 3:37:24 am 22-Apr-09 Event Time: 6:07:24 pm 21-Apr-09 UTC Source: Se…
When I recently replaced my image transfer kit on my office HP color laserjet 5550dn printer, I had a slight problem.  The left bracket that holds the transfer kit got stuck in the upright locked position instead of being at a 45 degree angle facing…
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…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

635 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