cancel
Showing results for 
Search instead for 
Did you mean: 

Rotate Text in Smartforms

jack_thelen
Explorer
0 Kudos

Hi all,

I've seen several threads explaining how to rotate the text for an entire label but I need to rotate only 2 of 12 windows on my Zebra label output.

When I use the ^FWR command it changes the rotation for the entire label, not just one window.  Has anyone created a Zebra label through Smartforms that prints both horizontal and vertical text?  See below for an example.

http://screencast.com/t/h8mblXqO

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,Jack.

Also i want to set text rotated in my smartforms,But after i insert the Print Control 'ZROT' i counld find it in the smartforms field search help.So,Could you please help me.(I am new to sap)

Florian
Active Contributor
0 Kudos

Hi Andy,

you need an Zebra-printer (Kind of Label printer) to rotate it. That is a must have.

~Florian

Former Member
0 Kudos

Hi Florian,

You mean i must have one Zebra-printer?OMG,My boss will fire me if i tell him to change our printer to another printer.

So,if i not use Zebra printer,what should i do to rotate text in my smartforms?

Best Regards!

Florian
Active Contributor
0 Kudos

You need an Zebra compatible printer. Means, if your printer uses ZPL-Driver this will be possible. Read through the provided Link above, there is everything explained.

~Florian

Former Member
0 Kudos

Hi Florian,

OK!Any other way to rotate text?I just check our printers,and the 'zebra type' will never work.

Could i load some characters?or some other method?

Thanks advance.

Florian
Active Contributor
0 Kudos

Hi Andy,

it just depends on, what you exact want to do. Rotate the complete form or just a sentence. Please share some more details.

~Florian

Former Member
0 Kudos

Hi Florian,

All i want is just rotate several sentences.



Thanks advance.

Florian
Active Contributor
0 Kudos

An easy solution for this could be to save the text as bitmap and just include the picture at the correct spot. I'm sorry, but there is no solution available in Smartforms/Sapscript to rotate the text in an easy way.

You need to check the printcontrols of your printer and see if there is one available and add the printcontrol to your driver (contact your basis-guys, they know what to do here) and afterwards you can do it with a printcontrol as mentioned above.

~Florian

Former Member
0 Kudos

Thanks,And i will check it.....

Former Member
0 Kudos

Hi Florian,

I have tested my smartforms with Zebra printer,But the the result was not rotated at all.

My text show above,So,Anything i was wrong?Or should i set the Driver type or create o new output   Devices?could help me with this setting step by step?

Thanks Advance.

Florian
Active Contributor
0 Kudos

Yes, this doesn't work in Smartforms, you need to create a command in the tree left-handed:

~Florian

former_member205144
Active Participant
0 Kudos

Thank you all...Let me try these once I get the printer information.

Florian
Active Contributor
0 Kudos

Hi lavanya,

here is the official zebra documentation how t use and what is possible. With this document you will be able to achive the stuff you need.

http://www.zebra.com/content/dam/zebra/product-information/en-us/brochures-datasheets/sap/sap-smartf...

Regards

Florian

peng_wen
Active Participant
0 Kudos

Hi,

Firtly, in the used device type, you need to create two print controls

containing the commands ^FWR and ^FWN via transaction SPAD:

SPAD -> Full Admin -> Device Types -> e.g. LZEB2 -> tab Print Controls

Here add the new print control commands: e.g.

ZROT: ^FWR

ZNOR: ^FWN

In the smartform, within the window where you need text rotated, create

a new command node by:

right click -> Create -> Flow Logic -> Command Node.

In the command node, there is a field 'Include Printer Control'.

In here enter 'ZROT'.

In the smartform flow, after the rotated text is processed, create a

second command node and issue the second print control ZNOR which

contains command ^FWN. This should turn the text back to normal

orientation.

BR,

Wen Peng

Former Member
0 Kudos

Hi,Peng.

I want to rotate text in my smartforms,And  i set the spad,used the command about the text with 'print control ^FWR',But nothing happend.

So,what's wrong with this?

BestRegards!

alexander_bolloni
Contributor
0 Kudos

Hello Jack,

I believe adding  the ^FWR command via a Print-Control command node in your SF is the way to go. But you need to re-set the rotation to "normal" after your "to-be-rotated" field. Here is what Zebra's ZPL2 documentation says about this cmd:

"The ^FW command only affects fields that follow it. Once you have issued a ^FW cmd, the setting is retained until you turn off the printer or send a new ^FW command".

So you need to somehow achieve that you send a ^FWN after your rotated text which will set the default rotation back to "Normal" = unrotated.

Best regards,

  Alexander

jack_thelen
Explorer
0 Kudos

Sorry, here's the image:

Former Member
0 Kudos

Jack,

The text you need vertically should be in different windows. also see SAP note 750772.

best regards,

swanand

jack_thelen
Explorer
0 Kudos

Hi Swanand,

Thanks for the reply but this note only points me to the solution I mentioned originally.  I have the four texts represented in 4 separate windows but again, adding ^FWR to the Smartform at any point seems to change the entire label, not just the one window.

Thanks.

--Jack

Former Member
0 Kudos

did you try to use  ^LRY also check ZEBRA.com for solutions

jack_thelen
Explorer
0 Kudos

S_LZPL_SETUP - '^LRY' has no effect.  Everything prints horizontally that way.  Should I use some other attribute name?

I appreciate the suggestion though!

Former Member
0 Kudos

1) You could create a bitmap picture with the rotated text, and use it with include BMAP command

2) Find a font type that is able to change the words into a vertical orientation (there are upside-down fonts for a 180 degrees rotation, so you might want to do a search for a font that meets your requirement) and then upload to SAP.

3) The last one which might be more viable is to use Adobe Interactive Forms. A colleague told me that one is able to change orientation of text in it (I have not tried it before) but you can do some exploration b4 committing to using it. You don't have to output to PDF to use it. Normal printing is also possible. The T-Code for this is: SFP (type 'S*' for SAP examples, do an exploration on Layout tab, maybe it can provide a new alternative).

former_member205144
Active Participant
0 Kudos

Hi Jack,

   How did you achieve printing the vertical string ?? I have exactly the same requirement.