Getting text with format

General TRichView support forum. Please post your questions here
Post Reply
Ceprotec
Posts: 192
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

Getting text with format

Post by Ceprotec » Fri Nov 27, 2015 11:09 am

Hi,

I am using the filll fields function with getvaluefromdatabase, where i'm getting a formated (bold,italic, etc..) text, and i want to put this text into a variable to the function insert ( or replace ), and still get the formated text.


Could anyone help me with this ?

Sergey Tkachenko
Site Admin
Posts: 13470
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko » Fri Nov 27, 2015 12:28 pm

Sorry, I do not understand the question.

I suppose the function getvaluefromdatabase is a function from one of demo projects?

Ceprotec
Posts: 192
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

Post by Ceprotec » Fri Nov 27, 2015 12:47 pm

Yes, it is.


I'm trying to replace a text and bring the text with the format style that i save from other text file...

The fillfields function replace letter per letter, I want to replace the entire word/text, the text that i want to overwrite comes from another text file from the database

Sergey Tkachenko
Site Admin
Posts: 13470
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko » Mon Nov 30, 2015 3:24 pm

Answered in a private message.

tiagosis
Posts: 5
Joined: Thu Apr 13, 2017 5:34 pm

Re: Getting text with format

Post by tiagosis » Fri Jul 07, 2017 8:29 pm

Hello, I would like to know what was the solution applied in this post, because I have similar problem.

Sergey Tkachenko
Site Admin
Posts: 13470
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Getting text with format

Post by Sergey Tkachenko » Sat Jul 08, 2017 9:48 pm

Do you store text in format that contains font properties (such as RVF or RTF)?
If not, how do you want to define font of inserted text?

tiagosis
Posts: 5
Joined: Thu Apr 13, 2017 5:34 pm

Re: Getting text with format

Post by tiagosis » Mon Jul 10, 2017 12:19 pm

Yes, I have text in rtf format and would like to replace with a variable contained in a srichviewedit

Post Reply