Search found 9406 matches

by Sergey Tkachenko
Tue Apr 15, 2008 3:40 pm
Forum: Support
Topic: Pasting copied webcontent containing images and text doesn't
Replies: 3
Views: 9788

1) About pasting from web pages. Which browser do you use, and which web page do you copy? 2) About copying to email composers.That means that Outlook Express ignores images in pasted RTF content, and Thunderbird email composer does not paste RTF at all (pastes plain text). There is nothing I can do...
by Sergey Tkachenko
Tue Apr 15, 2008 3:31 pm
Forum: Support
Topic: loading a Unicode file line by line
Replies: 21
Views: 48956

If there are two paragraph, each containing 1 item, both IsFromNewLine(0) and IsFromNewLine(1) are True. text := ''; for i := 0 to Editor.ItemCount-1 do begin if (i>0) and Editor.IsFromNewLine(i) then text := text + #13#10; if Editor.GetItemStyle(i)=rvsTab then text := text + #9 else if Editor.GetIt...
by Sergey Tkachenko
Tue Apr 15, 2008 7:30 am
Forum: Support
Topic: loading a Unicode file line by line
Replies: 21
Views: 48956

IsFromNewLine(0) is always true (because any document starts from a new line). If you use your own function getting text from RichView, do not add #13#10 for the 0th item.
by Sergey Tkachenko
Mon Apr 14, 2008 5:30 pm
Forum: Support
Topic: Pasting copied webcontent containing images and text doesn't
Replies: 3
Views: 9788

There are several possible reasons why images are not inserted. 1) Images have formats unsupported by Delphi by default, for example gif and png. You need to use thirdparty graphic classes to support them (see http://www.trichview.com/forums/viewtopic.php?t=89) 2) Images are on a web server. They mu...
by Sergey Tkachenko
Mon Apr 14, 2008 10:03 am
Forum: Support
Topic: Away message: out of office till April 13
Replies: 3
Views: 11331

I am back, now answering to e-mails...
by Sergey Tkachenko
Thu Apr 10, 2008 2:36 pm
Forum: ScaleRichView
Topic: strange problems
Replies: 3
Views: 18354

Please send problematic doc files to [email protected]
by Sergey Tkachenko
Wed Apr 09, 2008 6:04 am
Forum: Support
Topic: TRichView Multiple Thread Problem
Replies: 13
Views: 37954

Though TRichView code never change values of global variables or other shared resources, I am afraid that using them in threads must be very limited, because VCL library itself is not a thread safe. I highly recommend to call all methods allocating and freeing memory or resources (that includes Add*...
by Sergey Tkachenko
Tue Apr 08, 2008 4:03 pm
Forum: Support
Topic: loading a Unicode file line by line
Replies: 21
Views: 48956

If file can be loaded by LoadTextW, this is not a UTF-8, but UTF-16 file (each character = 2 bytes). Your code is not correct. You load file in string, so each Unicode character is read in two adjacent characters. When you pass this string to WideString parameter of TRichView.AddTextNLW, the string ...
by Sergey Tkachenko
Tue Apr 08, 2008 2:31 pm
Forum: Support
Topic: Several TextStyles in same line into Table.Cells
Replies: 2
Views: 8592

You can use AddNL() with ParaNo parameter = -1. This means adding in the same paragraph as the previous line. Such calls of AddNL() (with ParaNo=-1) are the same as calls of Add(). AddTextNL() can be used too (with FirstParaNo parameter = -1). AddText() is a deprecated method. PS: Each cell initiall...
by Sergey Tkachenko
Tue Apr 08, 2008 2:21 pm
Forum: Support
Topic: loading a Unicode file line by line
Replies: 21
Views: 48956

Please post here your code
by Sergey Tkachenko
Mon Apr 07, 2008 2:09 pm
Forum: Support
Topic: loading a Unicode file line by line
Replies: 21
Views: 48956

1. Load line in s: String. It will contain text in UTF-8 encoding.
2. Convert text to WideString (UTF-16): ws := UTF8Decode(s), where ws is WideString
3. Use AddNLWTag or AddTextNLW to add ws in TRichView
by Sergey Tkachenko
Sun Apr 06, 2008 7:58 am
Forum: Support
Topic: Center table.col
Replies: 5
Views: 17098

I'll create an example when I return (after April, 13)
by Sergey Tkachenko
Sun Apr 06, 2008 7:53 am
Forum: Support
Topic: tRichView Table Output to Roledata PDF Erro
Replies: 4
Views: 16725

Do you mean this problem happens in RolePDF?
by Sergey Tkachenko
Sun Apr 06, 2008 7:53 am
Forum: Support
Topic: Away message: out of office till April 13
Replies: 3
Views: 11331

Ok, I found a way to access my web site. But it's slow, so it's better to send urgent questions to my gmail address