Printing a Signature Font

pts.
Tags:
Development
Graphical User Interfaces
RPG
Has anyone programmed a font in a printer file that prints a signature? We have an HP4250 with a memory card containing this font. We were given by the vendor a control string to specify in the program. I think I need to customize a Work Station Customizing Object (WSCST) for the printer and for the new font, but cannot get past the syntax when specifying the vendors control string : <esc>201Q<esc>(s0p2h72v0s0b201T Thank you, Lina

Answer Wiki

Thanks. We'll let you know when a new response is added.

I can’t answer your question exactly, but this a rough idea of how it works. This should help you debug parts of the problem. The signature gets turned into points (like pixels) in the ASCII characters of the font. Since space is limited for mapping the image, many characters are used in the font to piece together the bitmap. For example, you could put first name in the letter A and lastname in the letter B. Then to print the font, change to the font MySignature in your word processor and print “AB” to piece toghether the image. Depending on the ascii characters they used, you have to know the codes in the font. I suspect the control string is the ascii chars they want you to use. They probably picked some uncommon ASCII codes just to keep random users from discovering the signature. Start by testing the font on the printer, go to the printer and print a test page of the font. To test your word processor try to use the font with some standard characters. If all this works, your probably having trouble with your word processor converting these uncommon ASCII codes to something else. Print the page to a file (thru the printer driver) and check the binary to make sure the right ascii codes get sent to the printer. — Good luck

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • JPLamontre
    Yes, you can do this with a *WSCST, but it is not the best solution. You have a better choice to code you hexa string directly in the PRTF (there is a keyword specialized). AND when CRTPRTF, add the parameter that permits the prtf to embbed hexa string (something like allow not printable char) I have do this some years ago, it runs, I have forget the details.
    0 pointsBadges:
    report
  • LinaVC
    Thank you all for you suggestions. I will look in to your ideas.
    0 pointsBadges:
    report
  • VBOTone
    You will need to send the escape character using "transparency". First, either override the print file or change it to not replace unprintable characters. OVRPRTF ... RPLUNPRT(*NO) Second, in you program, replace the excape character with x'03011B'. The x'03' indicates transparency. The x'01' indicates how many bytes are transparent. This will ensure that the escape character, the x'1B', will not be translated to a space, x'40'. The rest of the characters in the control string should be translated. Simply type them "as is". Concatenate the strings and place them in a printed field. This works with all kinds of printer control strings. Happy testing!
    55 pointsBadges:
    report
  • VBOTone
    Here is some example code that worked for LinaVC. d Esc c x'03011B' d Str1 c '(201QX' d Str2 c '(s0p2h72v0s0b201Tabcdef' eval signature = Esc + Str1 + Esc + Str2 write record1 If you are using fixed format RPG, you will have to use the CONCAT op-code.
    55 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following