in wprtedefs line 45855
Par.Lines[0].PageNum := startprop.pagenr - pagenr_offset;
version 6.20 on my statement
AllRTFText.ReformatAll(true, true);
in wprtedefs line 45855
Par.Lines[0].PageNum := startprop.pagenr - pagenr_offset;
version 6.20 on my statement
AllRTFText.ReformatAll(true, true);
Does this always happen?
I don't have in my tests.
So far in every case we have tested
I was going to try to set up a test case to send you - but we use advantage database server so it would be a big pain for you to get it to compile. What we can do really easy though is to do a goto meeting so you could trouble shoot on my machine remotely. If you are willing to do that send me a private email with your email address and the time/date you would like to do that.
Hi,
I added some code to prevent the range check error (which is not critical btw since it is just a number) in V6.21.
$R+ also slows the editor down a lot. It is only on if WPDEBUG is defined.
Julian
any idea when V6.21 will be available
It is out already.
download page - thanks for quick response
Now i am getting error on line 46098 wprtedefs
Par.Lines[0].PageNum := startprop.pagenr - pagenr_offset
using v6.21
Don't know whats different there. I didn't get any of such errors last months.
Change
PageNum: Word;
to
PageNum: Short;
or
PageNum: Integer;
Should both make the compiler happy.
I made the change as you suggested - but now I get an out of memory error on line 58156
Result := RTFData.LoadFromStream(Source, InsertText, FormatName,
SplitPar, Reader, FFileLoadNameAndPath , FFileExtension, FTextLoadFormat,
FLoadOptions, FLoadHTMLOptions, FCustomLoadOptions, FDisplayedText, AfterLoadEvent);
just sent you a program with failure by private email
Thanks for the example.
I loaded 600+ records (still running) - no memory error so far.
I added this compiler defines: WPDEBUG;WP6
To speed this up I used supertable.DisableControls.
I changed letter.cpposition := letter.GetTextLen; into
letter.cpposition := MaxInt;
I removed Application.ProcessMessages
That could actually cause trouble when the text is edited while used.
Don't get any error with XE2 - I assume this is what You were using.
I have made all of the changes you have suggested and reran the example and I still get an out of memory at record 771. However I am using Delphi 7 not XE
Hi, I would expect that simple the memory runs out.
Thats not really special to wptools.
When I save the "allrtf" after 780 rounds I get a RTF file of over 200MB. I can try to open that in Word (slowly), it expands to over 32000 pages and then Word crashes.
Sorry for bothering you. There was a corrupt memo file that was producing ~4000 letters per letter. Not your problem. Thanks for your help