Search found 12 matches

by King Cheung
Sun Aug 26, 2012 7:05 am
Forum: Support
Topic: Copy MSWord content to TRichviewEdit
Replies: 1
Views: 8512

Copy MSWord content to TRichviewEdit

Hello Sergey, When i copy text with some special symbols from msword to trichviewedit, and select the pasted text with a mouse move action in trichviewedit ,an error like this will occur: Project xxx.exe raised exception class ERichViewError with message 'Invalid caret position'. The RichViewEdit ...
by King Cheung
Fri Apr 20, 2012 2:26 am
Forum: Support
Topic: Copy MS Word content to TRichviewEdit
Replies: 8
Views: 19024

Sergey Tkachenko wrote:I tested you file - copied it from MS Word to TRichViewEdit, and it looks exactly the same.
You use an old version of TRichView, please update it and test if this problem still exists.
Hello Sergey,
The problem is solved after i update the TRichView. Thank you!
by King Cheung
Thu Apr 19, 2012 6:01 am
Forum: Support
Topic: Copy MS Word content to TRichviewEdit
Replies: 8
Views: 19024

Sergey Tkachenko wrote:What version of Delphi do you use?
Please give me step by step instructions how to reproduce this problem.
Send the source doc file to richviewgmailcom
Hello Sergey,
Do you test the chinese text? I really look forward to your solution!Thank you!
by King Cheung
Wed Apr 18, 2012 1:38 am
Forum: Support
Topic: Copy MS Word content to TRichviewEdit
Replies: 8
Views: 19024

What version of Delphi do you use? Please give me step by step instructions how to reproduce this problem. Send the source doc file to richviewgmailcom I am using Delphi 7, and the richview version is v11.0.5.FS.AS we need to paste chinese to TRichViewEdit,so unicode is the only choice.Then i add ...
by King Cheung
Tue Apr 17, 2012 12:04 pm
Forum: Support
Topic: Copy MS Word content to TRichviewEdit
Replies: 8
Views: 19024

Why do you need to process OnPaste? TRichViewEdit can paste the content saved by MS Word automatically, without any additional code. When i copy chinese from Ms Word to TRichViewEdit,sometimes it will be wrong.You can try it, when copy "(有无)" from MS Word to TRichViewEdit, the result will be "(无".
by King Cheung
Tue Apr 17, 2012 3:22 am
Forum: Support
Topic: Copy MS Word content to TRichviewEdit
Replies: 8
Views: 19024

Cause the pasted content mostly chinese,if i dont't add the OnPaste function, their will be some error.For example, if i copy "(有无)"from Ms Word, after i paste it to richviewedit, it will be "(无".
by King Cheung
Tue Apr 17, 2012 12:42 am
Forum: Support
Topic: Copy MS Word content to TRichviewEdit
Replies: 8
Views: 19024

Copy MS Word content to TRichviewEdit

I'm trying to copy content from MS Word and paste it to TRichviewEdit. In the OnPaste event, my code like this:

Code: Select all

 str := Clipboard.AsText;
 rchvwdt.InsertTextA(str,False);
 DoDefault := false;
In this way, what i get is plain text without font info. What should i do to get text with font info?
by King Cheung
Sun Apr 01, 2012 5:03 am
Forum: Support
Topic: table content paste to MS Word error
Replies: 1
Views: 7802

table content paste to MS Word error

When i copy a cell content and paste it to MS word, there will be added many empty line. code to read the table content like this: for j := 0 to RVData.ItemCount-1 do begin if (j>0) and RVData.IsFromNewLine(j) then xmlstr := xmlstr + #13#10; if RVData.GetItemStyle(j)=rvstab then xmlstr := xmlstr ...
by King Cheung
Fri Mar 30, 2012 8:50 am
Forum: Support
Topic: latest used font display on the top
Replies: 1
Views: 7234

latest used font display on the top

My problem is how to display a latest used font on the top of the font dialog just like MS word.
by King Cheung
Sun Mar 25, 2012 12:06 pm
Forum: Support
Topic: store table with merged cells to xml
Replies: 1
Views: 7178

store table with merged cells to xml

hello,everyone! I want to know how to store a table with merged cells to xml in a right way so that i can read the table from the xml correctly. who can show some sample code to help me?
by King Cheung
Sun Mar 25, 2012 1:56 am
Forum: Support
Topic: empty line in cell
Replies: 2
Views: 8510

hi Sergey£¬Your method works well. Thank you!
by King Cheung
Fri Mar 23, 2012 2:44 am
Forum: Support
Topic: empty line in cell
Replies: 2
Views: 8510

empty line in cell

Hello,everyone! When i load cell content from xml and insert it to all cells in table, there will be an additional line in all cells. Before i use AddNL to insert the xmlstr, i have call Cell.Clear.However, an additional line still exist in all cells. Anybody can give me a hand? I insert text in ...