cancel
Showing results for 
Search instead for 
Did you mean: 

Different font types(Bold, Italics) to be displayed in smartforms

Former Member
0 Kudos

Hi,

I have a requirement to print the item texts of a purchase order using a smartform. The user can enter the text in normal font, italic, bold or even underline some of the lines.

For e.g This is the text that the user types out in the Item texts window,.

This is of Normal font

This is of Bold font

This is Underlined

and this is in Italics

I need to print it exactly as it is shown. The problem is when I print the item texts using a include text I need to specify a paragraph format which can either be a normal font or bold or italics. Even if I dont specify a paragraph format it will take the default format which in my case is the normal font. The texts in Bold or in Italics would therefore display in a Normal Font.

How can I show the different formatting of the texts in my output using the same paragraph format?

Or

Is there a way I can create a paragraph format where I would not have to specify the font style and would therefore display in the font type that is entered dynamically?

Thanks in advance.

Vipin

Accepted Solutions (1)

Accepted Solutions (1)

former_member193284
Active Participant
0 Kudos

Hi You can create it using character format. create a smart style and added your own character format there.

Later switch to the line editor in smartform and work they way you do it for sapscripts.

thank

Former Member
0 Kudos

Hi Sumit and Aidan,

Thanks for your helpful answers. Well I basically took it up with my boss and they concluded that it was not worth the risk of reuploading the fonts as it might effect other forms as well, so they decided to close the issue. Its a shame we could not try out both your options to see if it works.

Thank you for your valuable time.

Thanks.

Vipin.

Answers (3)

Answers (3)

MuraliKrishna3
Explorer
0 Kudos

Hello Volks,

I have a same issue regarding the font and style

user is pasting in sales order header and item level teyt from word (Eg Bold, Italic and underlined) but its not taking. So may i know which trasaction need to use and create a text format and assign to show and print same format what user pasting from word??.

Thanks in advance.

Regards,

Murali.

Former Member
0 Kudos

Hi,

You need to fix the text (may be header text or item text)

means e.g. header text 4 is for bold text. and header text 5 is for underline text.

and when you use include text define paragraph format as per your header text.

Former Member
0 Kudos

Hi Aidan and Santosh,

Thanks for your answers. The problem unfortunately is that there is no fixed format for entering these texts. The user can enter the text however he/she wishes. So the first line may or may not be bold and the second line can or cannot be underlined. It is as per the users wish. So we need to print it just as the user has entered the data. So how can we overcome this probem.

Thanks in advance.

Vipin

Former Member
0 Kudos

Hi Vipin,

I don't think there is any such thing in smartform so that u could change paragraph formate dynamically. You have to create different text modules or elements with different font and depending upon the condition you have to display the text.

Regards,

Akhil

Former Member
0 Kudos

Hey Guys,

Well I did manage to get some breakthrough. When we format the text in bold or underline ME21N formats these texts based on the SAPSCRIPT character format. So basically the format is similar to the format in the SYSTEM smartstyle. Well true for Bold and Underline I have not figured out Italics as yet. By specifying SYSTEM smartstyle for my include text I am able to print the text accordingly but in Helvita and Courier fonts. The user would like these texts in ARIAL font which unfortunately it is not printing in.

So the problems I am now facing is that the texts are printing in bold and in underline in Helvita and Courier (only 2 fonts I have tried) and not in ARIAL which is what is desired. and the second is it is not printing in Italics.

Thanks

Vipin

aidan_black
Active Contributor
0 Kudos

Hi Vipin,

I think from what you are saying that you are limited to the fonts that are available in the aspscript form SYSTEM because this is the one assigned to your text. You can see this when viewing the text via menu: Goto -> Header.

You should make a copy of the standard form SYSTEM and add some paragraph or character formats which use the uploaded ARIAL fonts. Then you should assgn you text to this copied form as below.

Again in the long text editor, from the menu you can select:

Format -> Change Form

Regards,

Aidan

Former Member
0 Kudos

Hi Aidan,

I did try that, create a copy of the SYSTEM style and assign it. The problem is when I specify the font as Helvitica or Courier I am able to display the text in Bold and Underlined but when I change it to ARIAL it does not display the text in Bold, but it does display the Underline. Its a bit strange; are there any inherant differences between ARIAL font and the other two fonts that could cause this problem.

Thanks

Vipin

aidan_black
Active Contributor
0 Kudos

Hello Vipin,

When you upload the Arial true type font, you need to upload 4 different font files

ARIAL.TTF

ARIALBD.TTF

ARIALI.TTF

ARIALBI.TTF

So first you upload ARIAL.TTF. Then you check the bold tickbox and upload font file ARIALBD.TTF under the same font name. Similar for italic with font file ARIALI.TTF and bolditalic with font file ARIALBI.TTF.

Regards,

Aidan

nabheetscn
Active Contributor
0 Kudos

Hi,

Please upload the fonts into the system as suggested above.It will work

Nabheet

aidan_black
Active Contributor
0 Kudos

Hi,

With the same paragraph format you can define a different character format for ach line of the text.

Regards,

Aidan