06-09-2006 2:53 PM
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
06-09-2006 3:04 PM
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
06-09-2006 2:59 PM
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
06-09-2006 3:02 PM
Krishna i guess we canot rotate a Text as you can rotate a Label ... search in the forums for the same
Regards,
Santosh
06-09-2006 3:03 PM
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
06-09-2006 3:04 PM
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
06-09-2006 3:07 PM
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
06-09-2006 3:13 PM
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
03-20-2009 6:25 AM