cancel
Showing results for 
Search instead for 
Did you mean: 

Sapscript - Rotating Text 90 Degree (Not Zebra Printer)

Former Member
0 Kudos

Hi Guys,

Currently I'm in the midst of developing a SAPscript form for cheque printing but have ran into an issue. The cheque will be printed using normal inkjet printer like those Canon inkjet printer you have at home.

In the SAPscript form, is there a way to rotate the text 90 degrees?

I have searched through SDN, Google and have tried the Print Control statement ^FWR and ^FWN, but it doesn't seem to work.

When I print it out on the printer, the text is still printed out horizontally. I've also created a test SMARTFORM to test the Print Control statement and the result is the same.

Am I using the ^FWR and ^FWN Print Control statement incorrectly? Or is it that Print Control Statement only works for Zebra printers?

Any help is much appreciated guys.

Accepted Solutions (1)

Accepted Solutions (1)

peng_wen
Active Participant
0 Kudos

Hello,

First of all you should check whether your printer is able to
change the print direction in the middle of the page and
which printer escape sequences are necessary to do that.
E.g. if you use a PCL device type like HPLJ5, the sequences are:

Turn print direction by 90ー: <ESC>&a90P
Turn print direction back:   <ESC>&a0P

So you may copy your device type into the customer name space and
add two print controls, which contain these printer escape
sequences. After that you can first call the first print control
in your SAPScipt form, which turns the print direction by 90ー,
then you can output the text and finally you can call the second print control
via another PRINT-CONTROL command.

See note 66478 for more information on how to use PRINT-CONTROL.

Regards,
Wen Peng

Former Member
0 Kudos

Hi Peng Wen,

Thanks a lot for the helpful pointer.

In the end I set the orientation of both the SapScript form and the printer to 'Landscape'. With 'Landscape' the text was printed 90 degrees.

Answers (0)