Page 1 of 1

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

Posted: Thu Apr 16, 2009 2:02 pm
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

Posted: Thu Apr 16, 2009 4:25 pm
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?

Posted: Thu Apr 16, 2009 7:47 pm
by intis
Thanx for the hint ! Formatting did that job !
Best regards
IntIs