Search found 7 matches

by edward
Tue Jul 25, 2017 1:03 pm
Forum: Support
Topic: Convert richview files to rtf
Replies: 15
Views: 43605

Re: Convert richview files to rtf

Sergey, the problem was solved: function ConvertStringToItemText_(const Text: String; UnicodeItem: Boolean; CodePage: Cardinal): TRVRawByteString; begin if UnicodeItem then Result := RVU_GetRawUnicode(Text) else Result := TRVAnsiString(Text); end; function ConvertStringToItemText(const Text: String;...
by edward
Mon Jul 24, 2017 7:12 pm
Forum: Support
Topic: Convert richview files to rtf
Replies: 15
Views: 43605

Re: Convert richview files to rtf

Firebird 3.0
Character Set WIN1252
by edward
Mon Jul 24, 2017 6:58 pm
Forum: Support
Topic: Convert richview files to rtf
Replies: 15
Views: 43605

Re: Convert richview files to rtf

If the entire content of the field fits in to the screen, without a line break, works fine. When the field cause a line break, ou either, the content is edited, the chinese character apears in the text. The format in database is RVF. The blob field is saved in a temp file and the file is loaded to t...
by edward
Mon Jul 24, 2017 6:54 pm
Forum: Support
Topic: Convert richview files to rtf
Replies: 15
Views: 43605

Re: Convert richview files to rtf

// basicly to work with Unicode sr := ConvertStringToItemText(s, True, CodePage); item.Inserting(RVData, sr, False); RVData.Items.InsertObject(i, sr, item); item.Inserted(RVData,i); function ConvertStringToItemText(const Text: String; UnicodeItem: Boolean; CodePage: Cardinal): TRVRawByteString; beg...
by edward
Mon Jul 24, 2017 6:53 pm
Forum: Support
Topic: Convert richview files to rtf
Replies: 15
Views: 43605

Re: Convert richview files to rtf

Hi, bellow is the code: procedure TfrEditor.FillFields(RVData: TCustomRVData); function ConvertStringToItemText(const Text: String; UnicodeItem: Boolean; CodePage: Cardinal): TRVRawByteString; begin if UnicodeItem then Result:=RVU_StringToRawByteString(Text,True,CodePage) Result := RVU_AnsiToUnicode...
by edward
Mon Jul 24, 2017 1:48 pm
Forum: Support
Topic: Convert richview files to rtf
Replies: 15
Views: 43605

Re: Convert richview files to rtf

Hi Sergey, The RVF content stored in blob field is loaded correctly but I use fields to fill data in document, in runtime. At this moment, the content of all fields are being showed in the editor correctly, but not in the print preview. If I edit the document, the characters are transformed to "...
by edward
Thu Jun 29, 2017 2:51 pm
Forum: Support
Topic: Convert richview files to rtf
Replies: 15
Views: 43605

Re: Convert richview files to rtf

Sergey,

I'm using TRichView with Delphi 2007 and saving data directly in firebird 2.5 blobs. I don't use dbware components. Now, I need to convert all blobs to the Seatle version, with unicode support. There is any easy way?

Best regards,

Edward