cancel
Showing results for 
Search instead for 
Did you mean: 

vertical and horizontal printing in same page with smartforms or sapscript

0 Kudos

I use smartforms to print label which in there is vertical and horizontal text in same page.but i cant success to print like

this.because there is a settings with potrait and landscape option for only a page not windows.I created many windows in a page

there must be different alignment format for each windows.i dont want like this

A

B

C

D namely i must rotate text or window with 90 degrees in smartforms.how can i do this ?(i use datamax printer e-4203) with

print-controls and how??

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

I forgot to add another step when you use the Print Controls commands. Before you print, you got to choose the Output Device that uses the Device Type (containing the new printer controls you have created, for the rotation). If there isn't any, then you got to create an Output Device by copying an existing one (in t-code SPAD), and choosing the appropriate Device Type.

Message was edited by:

Hm He

Former Member
0 Kudos

I have followed your guide step by step, but the rotation text doesn't work.

I use follow configuration:

  • Output device ZLP01 copied from LP01
  • Device type ZHPlJ4 in ZLP01 copied form HPlJ4
  • Print control ZR090 in ZHPLJ4 with radiobutton for 'Direct', and 'Converted' and the control character sequence \e&a90P

Finally in smartforms command node I have insert ZR090 in Printer Control before text node in main window.


can some people help me please?

thank's

Dario

Former Member
0 Kudos

PCL5 commands are specific to HP printers. So you need to find out the <b>exact</b> printer control language for your Datamax printer becoz even if you follow exactly the same as the steps below, you may not be able to get your desired output, becoz your printer may not understand PCL5 commmands.

Note: The steps illustrated below are what I did for the HP printer that I used. <b>Caution:</b> If you try to use it on other printers, be prepared for cases like infinite loop- the printer may keep on churning out pages of unreadable characters. Also,you won't be able to see the effect in Print Preview because print commands will only be effected during the actual printing.

I have used the PCL5 commands from this document: <a href="http://h20000.www2.hp.com/bc/docs/support/SupportManual/bpl13210/bpl13210.pdf">http://h20000.www2.hp.com/bc/docs/support/SupportManual/bpl13210/bpl13210.pdf</a> (refer to P79)

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. <i>(Do select the Device Type of your printer, since I am using HP 4000 series, I chose HPLJ4)</i>

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 radiobutton 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. (<i>These are the PCL5 commands specific to HP prnters)</i>

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.

<b>Note:</b> 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 alot 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,<b> search the internet for equivalent Printer Control Language for your Datamax printer</b> (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).

<b>Alternatives:</b>

1/ Or you could create a bitmap picture with the rotated text, like wat 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 commiting 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).

Do reward points if you find this post useful. 😃

Former Member
0 Kudos

Do you know of any Printer Control language for your Datamax printer? This is because I have tried to rotate text by using PCL5 commands for HP printer and its do-able. You can try doing the same for your Datamax printer. That will involve meddling with t-code SPAD and the Device Type. If you are interested in the steps to create the Print Control, do let me know.

0 Kudos

i searched PCL5 print-control but i havent got it..is there another print control when i can use. or how do i create ,copy ? can you help me in rotating text in smartforms?

thanks a lot.

0 Kudos

your answer is irrelevant for my problem.

i only want to rotate text by 90 degree.

Former Member
0 Kudos

Hi

see this

once go through the thread u will get to k now differnt ways

Change the editor to 'PC Editor' and take the menu.

in text editor of TEXT ELEMENTS..

Insert -> Characters -> SAP Symbols

in print preview u can't see these changes..

go through these links,hope help you to solve your problem

Refer to link

<b>go through this link which ll give you detail about the vertical link and horizontal link</b>http://www.sap-press.com/downloads/h955_preview.pdf

Reward points for useful Answers

Regards

Sudheer