Page 2 of 2

Posted: Fri Aug 29, 2008 12:22 pm
by proxy3d
It because of that at RichView is called two times Forrmat. For the first time in RefreshData, the second time at RVAction on file opening.

Posted: Fri Aug 29, 2008 12:37 pm
by AutoCorect
In my program I don't use RVAction on file opening. And if I call Format it takes about 9..10% from total time.

Posted: Fri Aug 29, 2008 1:19 pm
by proxy3d
If you do not use RVAction then after file loading (or after Format):
1) call calculatePageCount
2) delete RefreshData

Posted: Fri Aug 29, 2008 1:25 pm
by AutoCorect
I tried this but it gives that error (only one page to edit when I load the second time).
With RefreshData is ok but not that fast.

Posted: Tue Sep 02, 2008 8:41 pm
by proxy3d
Send me your code on file loading.

Posted: Thu Sep 04, 2008 2:18 pm
by AutoCorect
Unfortunatelly my application is very complex.
I have a function that finds what kind of file it is and load it in ScaleRichView but it's also very complex and uses many other functions.
Also it's not easy for me to make a new program with a simpler version of this function.

I will send you the function by email.