Search found 9411 matches

by Sergey Tkachenko
Wed Apr 16, 2008 7:16 am
Forum: Support
Topic: loading a Unicode file line by line
Replies: 21
Views: 48972

In your code, I do not understand the statement

Code: Select all

if i = srvEditor.RichViewEdit.ItemCount - 1 then ...
Why do you need to process the last item specially? This item is not necessary starts a paragraph.
by Sergey Tkachenko
Wed Apr 16, 2008 7:15 am
Forum: Support
Topic: loading a Unicode file line by line
Replies: 21
Views: 48972

Sorry, what do you think IsFromNewLine means? Probably, you misunderstand it, and so there is a confusion. Actually, it means "this item starts a paragraph" (or a line inside paragraph, added with Shift+Enter). In your example, there are 2 paragraphs, so there are must be only 2 items havi...
by Sergey Tkachenko
Wed Apr 16, 2008 4:55 am
Forum: Support
Topic: Arrow/TAB not working in tables
Replies: 5
Views: 16050

I created an ActiveX, and I can confirm the problem. Unfortunately, it's difficult to debug ActiveX, so it may take some time.
by Sergey Tkachenko
Wed Apr 16, 2008 4:53 am
Forum: Support
Topic: loading a Unicode file line by line
Replies: 21
Views: 48972

Sorry, I do not understand what's wrong. In your example: Item[0] = 'LETHAL' IsFromNewLine = True , because the document starts from a new line, IsFromNewLine(0) is always true. Item[1] = character IsFromNewLine = False , because the character contunues the same paragraph as the previous item. Item[...
by Sergey Tkachenko
Tue Apr 15, 2008 3:53 pm
Forum: Support
Topic: Center table.col
Replies: 5
Views: 17102

Sorry, do you need to implement this as an editing operation (that can be undone by user) or not?
For an editing operation, your code is correct: select the proper cells and call ApplyParaStyleConversion.
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: 9794

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: 48972

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: 48972

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: 9794

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: 11333

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: 18367

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: 37969

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: 48972

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: 8599

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: 48972

Please post here your code