cancel
Showing results for 
Search instead for 
Did you mean: 

Printing vertical text in Smartform

Former Member
0 Kudos

Hi,

Is there any way to print the text in vertical format instead of horizontal format in Smart form??

Thanks,

Raj.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

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

Former Member
0 Kudos

If u want to print data in vertical format, just create one style , in that create paragraph format as left justfied 0 and right justified as windowlength-1.use this paragraph format for u r text.

OR

Have to create command within a window (window would be containingtexts which you want to print vertically).Within Command on General Attributes you will have to specify appropriateprint control one which is useful for your requirement.

Thanks,

Abhi

Former Member
0 Kudos

How to create a style for displaying text as vertical in smartform can you please explained detail.

Regards ,

Saran

Former Member
0 Kudos

1/ Go to T-code: SPAD > Full administration > Device Type tab > Display Print controls

2/ Change to Edit mode > Click on Create icon > create a Print Control say ZR090, add the Comment > Check 'Use in SAPscript Drivers', 'Use by SAP' > Save it

3/ Go to T-code: SPAD > Full administration > Device Type tab > Choose your Device Type: say HPLJ4 (it is recommended that you copy the Standard Device Type to a new Device Type ZHPLJ4 so that future upgrades will not affect your Device Type.) > Display. (Do select the Device Type of your printer, since I am using HP 4000 series, I chose HPLJ4)

4/ Change to Edit Mode > Print Control tab > Click the Standard Print Controls button on the Application toolbar > Put cursor on the newly created Print Control name in Step 1 and hit the Choose icon on the Application toolbar. The name should appear right at the bottom of the Print Control list. For that Print Control name, select radio button for 'Direct', and 'Converted' and the control character sequence is: \e&a90P (if you need a 90 degrees rotation), \e&a0P (for 0 degree), \e&a180P (for 180 degrees), and \e&a270P (for 270 degrees) > Save it. (These are the PCL5 commands specific to HP partners)

5/ Note: You need to create another Print Control for a 0 degrees rotation to switch back to the normal printing orientation after printing your rotated text. So repeat Step 2 and Step 4 for a 0 degrees rotation

6/ In your smartform, Create a Command before the Text you want to rotate (Right Click on the Node > Create > Flow Logic > Command > Under Generate Attributes tab > Output Options > Include Printer Control > click the Search Help and find the Print Control ZR090 which will rotate everything after this Command to 90 degrees.

7/ After rotating the part of text, if you want to rotate it back to the normal printing direction, insert another Command as in Step 6, but choose the Print Control for the 0 degrees.

8/ Print your smartform to see if that is your desired output.

Note: from my trial-and-errors, exploration and testing, I feel in my opinion, it might not really be worth the while to work on this. Because it needs a lot of trials-and-errors and print commands are very specific to the printers (so if client changes the printer, your smartform may be rendered useless unless it uses the same Printer Control Language). Further, I have another problem with this. Even if you manage to rotate the text successfully, the position of the text may not be want you want (becoz of what the command tries to do) . Then you have to take into account the position in the designing of the form. So here is what I suggest, if you really want to use Printer Controls, search the internet for equivalent Printer Control Language for your Datamax printer (Note that even if you find, the way to use may be different from the above Steps. For eg. for Zebra Printers, the way to rotate text is different as shown in OSS Note 750772).

Alternatives:

1/ Or you could create a bitmap picture with the rotated text, like what many have suggested

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_member205763
Active Contributor
0 Kudos

U can use custom print controls to achieve printing of verticao text, but the solution is printer dependant and not recommended.

Former Member
0 Kudos

Hi,

If it is a standard text, make it bitmap in vertical shape, upload through SE78 tcode and through graphics option print in smartforms.

If it is dynamic text, make the window with a width proportionate to the font size, so that one letter is printed in one line. Maintain height of window according to the requirement.

Regards,

Shailaja