Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Signature on Checks using SAP SCRIPT

0 Kudos

Hi,

I am looking for some help on how to get the Printer Resident Singature on to the Check using SAP Script. We have a HP LaserJet 4250 Priter in which the Chip Contains the Signature ( Printer Resident Singaure ) and currently the external application is able to print this signature on the checks. Right now we are in Migration to SAP and we are trying to get this Signature to print on the Check using SAP Script.

Any idea how this can be done?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

Get the signature into SAP, (upload into SAP as an image) and then use this in your sapscript.

Regards,

Raj

14 REPLIES 14

Former Member
0 Kudos

Hi

Get the signature into SAP, (upload into SAP as an image) and then use this in your sapscript.

Regards,

Raj

0 Kudos

No. My requirement is we need to print printer resident signature. It can not be taken from SAP.

0 Kudos

You can print the printer resident signature using HEX ENDHEX command.

First Print the Printer font list from the printer's configuration menu, Find the signature in the font list, next to it there'll be esacape sequence in ASCII and Hex format.

Add the following command in the sapscript window of the signature:

/: HEX TYPE PCL

/= Enter the Hex escape sequence(begins with 1B) from first step

/: ENDHEX

Regards

Sridhar

0 Kudos

Hi Sridhar,

I tried printing font list.

I am getting Font name as: Signature and infront of that escape sequence as: <esc>(4B<esc>s1p41.0v0s0b102T

Do we have to write like this:

/: HEX TYPE PCL

/= <esc>(4B<esc>s1p41.0v0s0b102T

/: ENDHEX

I have tried this but it is not working. Is there any configuration required?

0 Kudos

The escape sequence should be in hex, is there hex seq next to <esc>(4B... in the print out.

if not i've converted the escape seq to hex: add the following as middle line

/= 1B2834421B73317034312E30763073306231303254

removed 0D0A from end of the hex seqence

Regards

Sridhar

Message was edited by: Sridhar K

0 Kudos

Hi Sridhar,

I contacted vendor to get the singanture font. They send us one file. using which we came to know which font is called for Signature and it prints the singature.

On this printout it shows FONT CALL :

<esc>(4B<esc>(s1p53v0s0b102T

How do we get hex code for this?

Thanks in advance,

Umesh

0 Kudos

Here's the hex conversion of the asci escape seq you've posted: 1B2834421B287331703533763073306231303254

Used hex viewer to get the hex string.

Regards

Sridhar

0 Kudos

Tried this. It does not print anything.

0 Kudos

Does the vendor document show any escape seq and how to use in applications? usually they include two characters like (S=)at the end of esc sequence.

Add 533D at the end to the the prev hex seq i've posted.

Contact the vendor and get escape seq or check with them the one you are using is the right one.

Regards

Sridhar

0 Kudos

Umesh,

U need to find out the escape sequence to print the same...how does the other application handle it ?

Regards

Anurag

0 Kudos

Hi Sridhar,

I asked vendor to give hex sequence for the font. Now it is working fine.

Thanks a lot for all your help.

I will give you points

Regards,

Umesh

0 Kudos

For future readers of this post, I had the same problem and the code from Sridhar K got me 99% of the way. I only modified his hex string by adding the hex for "abcdef" to the end.

This programming example is from the "Programming Example for TROY Digital Image Fonts (non-Microsoft Windows)" section of Troy Group's "Digital Image User's Guide for HP Printers":


<esc>(201Q<esc>(s0p2h72v0s0b201T   'select the Digital Image.
<esc>*p1800x900Yabcdef             'cursor position followed by pattern of charcters

Notice that the first line is just selecting the font. It isn't printing anything yet. The second line does two things. It sets the position of the cursor (<esc>*p1800x900Y) and then gives the actual "word" to be printed in that font (abcdef).

I entered the following code into SAPscript:


/: HEX TYPE PCL
/= 1B28323031511B28733070683732763073306232303154616263646566
/: ENDHEX

In this case, the portion "1B28323031511B28733070683732763073306232303154" is setting the font to be used and "616263646566" is the hex equivalent of "abcdef". If you leave off the "abcdef", it won't print anything.

The actual sequence of characters to enter will be on the Digital Image Data Sheet that should have been received with the order. Also take note of the escape sequence on each sheet. If more than one signature was ordered, the font name (and the PCL Image Selection Sequence) will be different as well.

0 Kudos

We are also having difficulty getting our Troy Signature programmed to print correctly. Our programmers entered the following into the SAPScript text elements to call and print the signature.

/: BOX XPOS '0' IN YPOS '0' IN WIDTH '2' IN HEIGHT '0' IN FRAME 10 TW

/: HEX TYPE PCL

/= 1B28323031511B28733070322E30306837322E30763073306232303154616263646566

/: ENDHEX

/* PRINT-CONTROL SBP01

/*

SG <SI>test</>

/: BOX XPOS '0' IN YPOS '0.50' IN WIDTH '2' IN HEIGHT '0' IN FRAME 10 TW

Does this look correct? Are we missing something? Any help would be greatly appreciated.

Former Member
0 Kudos

I am looking for the HEX sequence for <esc>(4B<esc>(s0p3h9.12v0s0b102T. I do not understand how to get this from the printer documentation. So if anyone could help on the Hex for this I would appreciate it.