Problem with tables imported from RTF

General TRichView support forum. Please post your questions here
Post Reply
badevlad
Posts: 10
Joined: Thu Feb 01, 2007 12:59 pm
Location: Zhitomir, Ukraine
Contact:

Problem with tables imported from RTF

Post by badevlad »

When I select and drag simple table from MS Word to RichViewEdit control it works well, until I start to work with it. If I do select content of cell and start type - I get AV in some cases. If I do some formatting of text in a cell - I get AV in some cases. If I trying to delete the whole table I get AV almost always.

If I do the same with HTML - it works just excellent. I can drag table from browser and edit it safely. There are only problem with tables from RTF.

I using the last version of RichView.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Please give me step by step instructions how to reproduce this problem.
In my test, all works as expected.
badevlad
Posts: 10
Joined: Thu Feb 01, 2007 12:59 pm
Location: Zhitomir, Ukraine
Contact:

Post by badevlad »

Can we speak via ICQ?

Just do the following. Create new application with RichViewEdit control, assign RVStyle to it and run.

Open MS Word and create simple table 3x3, type something in cells.

Select whole table and drag it from Word to your application and drop on RichViewEdit.

Then try to edit content of cells, make some parts of text in it bold/normal. On my side it creates exception.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I draged table 3x3 from Word 2003 to the ActionTest demo, selected cells , applied bold, deleted the first column... All worked without problems.

How do you apply bold in your application? Can you reproduce this problem in TRichView demos?
What version of TRichView do you use? (the latest may mean 1.9.24 or 1.9.31)
badevlad
Posts: 10
Joined: Thu Feb 01, 2007 12:59 pm
Location: Zhitomir, Ukraine
Contact:

Post by badevlad »

I am using 1.9.24 version. I can not reproduce such error in compiled demo from your site, but as I can see it is old enough. As for bold, I have made a mistake, I have tried it in another my test application.

Can you test it in v.1.9.24? You may do any actions in cells, and most often I get AV when deleting the whole table. As I can see, sometimes in RVData appears incorrect pointer (may be destroyed object?).
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I cannot reproduce the problem with v1.9.24 as well.
Here is the ActionTest demo compiled with 1.9.24, it works ok in my side: http://www.trichview.com/support/files/ ... onTest.zip
badevlad
Posts: 10
Joined: Thu Feb 01, 2007 12:59 pm
Location: Zhitomir, Ukraine
Contact:

Post by badevlad »

It works well in your demo.

Thank you for help, I will try to find reason on my side.
Post Reply