on 07-07-2009 10:24 PM
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
hi norman,
try with ^FWR and ^FWN print command in transaction SPAD:
hope it solves....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the text is not fix you can do the following and you want to display text rotated by 90° try the following:
1. Upload bitmaps for every letter of the alphabet and name it accordingly a.bmp, b.bmp, etc.
2. Add some coding to split the text you want to display into a table
3. loop the table and display the images
Not nice, but works 😉
Cheers
Uli
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try to follow the steps givenbelow in your SMARTFORM.
1. Create a template and keep the text alone inside that you wanted to rotate.
2. Above and Below your text, In the text element that you wanted to rotate give the Print control.
Ex PRINT CONTROL 'SF201'
&variable text&
PRINT CONTROL'SF202'
2. Create a command inside the window and enter the attribute name and the attribute value.
Ex. Use Attribute name as S_LZPL_HR1
Attribute value as 'BC_CD39'
3 Create another command above the template and enter the value "SF200" in Include Printer control.
4.Create another command above the template and enter the value "SF202" in Include Printer control.
I followed the above procedure for rotation of texts, and it worked.
Thanks
Narasingam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.