Number code style
Number code style
Hello
I have a problem with the use of the component DBRichViewEdit. If I save some basic information when loading the values I have a format that is applied at the opening of the datasource
For example, this value cannot be loaded correctly, the text is center and blue
2 00 01 17 300 299
While it works very well
2 10 01 17 300 299
I've not found property in the component to work around the problem.
Thanks
I have a problem with the use of the component DBRichViewEdit. If I save some basic information when loading the values I have a format that is applied at the opening of the datasource
For example, this value cannot be loaded correctly, the text is center and blue
2 00 01 17 300 299
While it works very well
2 10 01 17 300 299
I've not found property in the component to work around the problem.
Thanks
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Probably, documents are stored in the database in RVF format without styles. So, when loading, existing collections of text, paragraphs and list styles are used.
Right click DBRichViewEdit component at design time, choose "Settings" in the context menu. Set "Allow adding styles dynamically" (or "Allow adding styles dynamically + style templates" if you need real styles, like in MS Word).
Make sure that your DBRichViewEdit is connected with its own TRVStyle component (if you have multiple editors, connect each of them to its own TRBStyle component).
Resave your documents in database, assigning the proper font and paragraph properties.
Does it fix the problem?
Right click DBRichViewEdit component at design time, choose "Settings" in the context menu. Set "Allow adding styles dynamically" (or "Allow adding styles dynamically + style templates" if you need real styles, like in MS Word).
Make sure that your DBRichViewEdit is connected with its own TRVStyle component (if you have multiple editors, connect each of them to its own TRBStyle component).
Resave your documents in database, assigning the proper font and paragraph properties.
Does it fix the problem?
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
If this is a field for text, especially Unicode text, it cannot contain binary data like RVF, so document can be damaged.
Please save field content to a file and send to me.
You can do it using this code:
Please save field content to a file and send to me.
You can do it using this code:
Code: Select all
var Stream: TMemoryStream;
FileStream: TFileStream;
Stream := TMemoryStream.Create;
(Table.FiedByName(FieldName) as TBlobField).SaveToStream(Stream);
Stream.Position := 0;
FileStream := TFileStream.Create(FileName, fmCreate);
FileStream.CopyFrom(Stream, 0);
FileStream.Free;
Stream.Free;
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Number code style
The new forum allows attaching files.
Re: Number code style
Ok I sent it by email because rvf are not authorized
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Number code style
Summary of our conversation: the component mistakenly detected RVF format in this sequence of numbers. A fixed version is uploaded, RVF detection is more strict now.