Getting text with format

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

Getting text with format

Post by Ceprotec »

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: 17236
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Sorry, I do not understand the question.

I suppose the function getvaluefromdatabase is a function from one of demo projects?
Ceprotec
Posts: 259
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

Post by Ceprotec »

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: 17236
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Answered in a private message.
tiagosis
Posts: 41
Joined: Thu Apr 13, 2017 5:34 pm

Re: Getting text with format

Post by tiagosis »

Hello, I would like to know what was the solution applied in this post, because I have similar problem.
Sergey Tkachenko
Site Admin
Posts: 17236
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Getting text with format

Post by Sergey Tkachenko »

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: 41
Joined: Thu Apr 13, 2017 5:34 pm

Re: Getting text with format

Post by tiagosis »

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