How do i retain Form/Report fonts when copying HTML from another source into the form

jjake

Registered User.
Local time
Today, 06:11
Joined
Oct 8, 2015
Messages
291
Hi,

I have a form that uses a memo field with rich text. I would like to use rich text so i can keep the correct formatting (Paragraphs) from my copy+paste source, but i do not want to use the font the source uses. I want to use the Font in my form (if needed) so when i generate my report it all matches without one textbox being different then the rest (but keep paragraph formatting).

Thanks.

J
 
Look at the HTML
You may find something like <font face="Tahoma">
Change it to your preferred font e.g. <font face="Calibri"> or add that at the start if it doesn't exist

If it doesn't exist add </font> at the end of the HTML
 
I do see it if i look at the plain text format. But this doesn't seem practical for large amounts of information. Every line item has the code and it could vary from source to source.

Is there not another way within the coding that when text is entered into the text box it will automatically revert to the defaulted font/size and keep the spacing?

Or if not when i generate the report it will adjust the fount/size accordingly?
 
I do see it if i look at the plain text format. But this doesn't seem practical for large amounts of information. Every line item has the code and it could vary from source to source.

Is there not another way within the coding that when text is entered into the text box it will automatically revert to the defaulted font/size and keep the spacing?

Or if not when i generate the report it will adjust the fount/size accordingly?

Unless you change the font in the middle of your HTML, you only need to set it at the start.
However, if you change the colour or size or style, it may reappear.
You can easily do a global find and replace wherever the font name occurs & then the changes are permanent.

Someone else may be able to suggest other ways of getting it to revert to a default font automatically
 

Users who are viewing this thread

Back
Top Bottom