Quantcast
Viewing all articles
Browse latest Browse all 1353

Rotate/rotating text in SmartForms

Need to rotate text 90 degrees in a SmartForm.

The printers are all PCL based.

New print-controls cannot be created.

 

In PCL, the following command sets rotation:

<ESC>&a#P

where # is the number of degrees

 

To rotate 90 degrees, the PCL command would be:

<ESC>&a90P

 

In SAPscript, I can use the print-control for <ESC>.

/:  PRINT-CONTROL SESCP
=  &a90P

 

Another method that works involves standard texts.

Define standard texts named ZPCLROTATE90 and ZPCLROTATE0.

They willl set the rotation to 90 and reset to 0 degrees.

 

/: PRINT-CONTROL SESCP
( &a90P

 

/: PRINT-CONTROL SESCP
( &a0P

 

The SAPscript uses the new standard text objects:

AS  horizontal text
/:  INCLUDE ZZPCLROTATE90 OBJECT TEXT ID ST
AS  rotated text
/:  INCLUDE ZZPCLROTATE0 OBJECT TEXT ID ST
AS  horizontal again

 

This also works in SAPscript.

 

None of this seems to work in SmartForms.  I thought the INCLUDE text would work the same in SmartForms.  It does not.

Tried the first method shown; SmartForms converts the "=" or "(" paragraph symbol to "*".  This separates the escape sequence and it becomes invalid.

 

Any ideas?  They do not want to use SAPscript.  Cannot create a Z print-control.

 

Thanks,

 

Norm


Viewing all articles
Browse latest Browse all 1353

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>