InsertRVFFromFileEd vs. rvActionOpen1->LoadFile(...ffiRVF

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
intis
Posts: 11
Joined: Mon Mar 23, 2009 7:45 pm

InsertRVFFromFileEd vs. rvActionOpen1->LoadFile(...ffiRVF

Post by intis »

basis:
- an empty/blank RVE.
- a RVF file with the only content "test"

# If I try to load the RVF from my RVA "Open"-button everything works fine ! (Content "test" is readable.)
# If I try to load the same RVF into the same RVE via InsertRVFFromFileEd, I get "list index out of bounds(-1)"
# If I try to load the same RVF into the same RVE via rvActionOpen1->LoadFile(...ffiRVF),
nothing happens. (How to control success of loading in this case ?)

Thank you for some helpful hints !
Best regards
Intis
Sergey Tkachenko
Site Admin
Posts: 17554
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

InsertRVFFromFileEd is an editing method. You must be sure that the document is formatted before its call. TrvActionInsertFile uses this method.
TrvActionOpen.LoadFile is called in the ActionTest demo to load the initial file, so it's strange that it did not work in your application.
Can you send a simple project reproducing these problems to me?
intis
Posts: 11
Joined: Mon Mar 23, 2009 7:45 pm

Post by intis »

Thanx for the hint ! Formatting did that job !
Best regards
IntIs
Post Reply