trichview.com

trichview.support




Re: Text Styles & Save methods


Return to index


Author

Message

Sergey Tkachenko

Posted: 08/19/2002 19:08:45


This size is stored in table.BestWidth property.


The most probably the problem is in improper use of tags.

SaveRVF may crush, if rvoTagsArePChars is in RVE.Options but tags do not

point to strings.

How do you assign tags? Do you have rvoTagsArePChars in RVE.Options?



> Well, I found the problem... it's not with the size, it's with the Tags..

> You see, I use tags of the tables in my program to save the size ( but the

> actual size at creation time, for example -50 means that the size of the

> table has been set to 50%). I do that because the .Width returns me the

> current size in pixels and not the value I have set. So as I set the tag

to

> some value and use that method (

>   MS:=nil;

>   try

>     MS:=TMemoryStream.Create;

>     RVE.SaveRVFToStream(MS,false); // here is the crash

>     MS.Position:=0;

>     SetLength(FRVF,MS.Size);

>     MS.ReadBuffer(Pointer(FRVF)^, MS.Size);

>   finally

>     MS.Free;

>   end

> )

> It crashes. Try it and you will see.

>

> --Slavi

>

> "Sergey Tkachenko" <svt@trichview.com> wrote in message

> news:3d60d50f$1@support.torry.net...

> > > BUT about the table.... I do not straightforwardly create a table

> 2*600(it

> > > works ok with me, too), but first create a table, for example 2*5 and

> then

> > > split vertically some cell to 600 pieces. And then it crashes. By the

> way,

> > > my computer has 192MB RAM.

> >

> > I cannot reproduce this problem.

> > Try to it with exe file compiled with newer version:

> > http://www.trichview.com/resources/actions/actiontest.zip

> > (it has a limit on 500 rows when splitting, but you can split twice).

> >

> > Or send me a project reproducing problem.

> >

> >

>

>





Powered by ABC Amber Outlook Express Converter