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: 

text rotation by 90 degree in smartforms

Former Member
0 Kudos

how can i rotate the text by 90 degree in smartform ?

Barcode can be rotated but according to barcode i have to

rotate my text .

<<email address removed>>

Edited by: Matt on Mar 20, 2009 7:45 AM

1 ACCEPTED SOLUTION

sridhar_k1
Active Contributor
0 Kudos

I've posted the following for similar question in the same forum:

If u always print static text, create a bmp in mspaint and upload into sap using SE78, and use it in ur smartform.

Printing dynamic text vertically in sap smartforms is little complicated, it involves copying and modifying printer device type in SPAD:

If you are using PCL driver in the device type then do the following to print vertical text:

1. Copy the PCL device type

2. create print control ZRVRT , Check hexadecimal radiobutton enter 1B2661393050 in the control char string

3. Create print control ZRHRZ, Check hexadecimal radiobutton enter 1B26613050 in the control char string

4. save and assign the device type to the pcl printers ur going to use

activating Print control ZRVRT, prints the text vertically, after printing vertically, u need to call print control ZRHRZ to set the printer to horizontal mode again.

the following lines print text vertically in sapscript:

/: PRINT CONTROL ZRVRT

  • print vertical text

/: PRINT CONTROL ZRHRZ

  • print horizontal text

You can use command node to call above print controls in smartforms or use INCLUDE standard text

Regards

Sridhar

7 REPLIES 7

Former Member
0 Kudos

Hi

Many guys had a requests like yours and all had the same answers: it's not possible.

But try to look at the forum, perhaps someone found a good solution.

Max

0 Kudos

Krishna i guess we canot rotate a Text as you can rotate a Label ... search in the forums for the same

Regards,

Santosh

Former Member
0 Kudos

Hi Sharma

I agree with MAx.

Instead of rotating the text what you can do is you can align the window parallely with the bar code window and enter each alphabet into one line of text element.Then I think you can get the desired result.I mean each alphabet for each line.

Thanks

Praneeth

Message was edited by: Praneeth kumar

sridhar_k1
Active Contributor
0 Kudos

I've posted the following for similar question in the same forum:

If u always print static text, create a bmp in mspaint and upload into sap using SE78, and use it in ur smartform.

Printing dynamic text vertically in sap smartforms is little complicated, it involves copying and modifying printer device type in SPAD:

If you are using PCL driver in the device type then do the following to print vertical text:

1. Copy the PCL device type

2. create print control ZRVRT , Check hexadecimal radiobutton enter 1B2661393050 in the control char string

3. Create print control ZRHRZ, Check hexadecimal radiobutton enter 1B26613050 in the control char string

4. save and assign the device type to the pcl printers ur going to use

activating Print control ZRVRT, prints the text vertically, after printing vertically, u need to call print control ZRHRZ to set the printer to horizontal mode again.

the following lines print text vertically in sapscript:

/: PRINT CONTROL ZRVRT

  • print vertical text

/: PRINT CONTROL ZRHRZ

  • print horizontal text

You can use command node to call above print controls in smartforms or use INCLUDE standard text

Regards

Sridhar

former_member188685
Active Contributor
0 Kudos

Hi,

static texts can be done using TIFF file,and call that text in your window. but Dynamically it is not possible.Just forget it.

Regards

vijay

Former Member
0 Kudos

hi Krishna,

The way to roatate text in smartforms is using the COMMAND node. The rotation of text takes place at the printer and cannot be viewed in the print preview.

Using the COMMAND node, Attribute to change the orientation to 90deg needs to be passed to the printer.

The Attributes are printer dependant.

e.g.

In the ZPL-II printer control language the attribute is S_LZPL_SETUP.

In this command node, enter the following under "spool control", "free attributes":

Attribute name: Attribute value:

S_LZPL_SETUP '^FWR'

For the particular printer you are using u would need to find the appropriate attibute and the value to set it to.

Regards,

Naveen

Former Member
0 Kudos

hi

use ^FR&fieldvalue&

reg

Ramya