Using v5.0.0.2 of the TsiLangFiles Editor, with v6.3 TsiLang Components Suite. The type library produced imported from SILEditor.exe only declares these types:
OK thanks. I re-read your post after I posted, and realised that is probably what you meant.
Unfortunately, I can't seem to export from a SIB file at all. The code I gave above for exporting a SIL file to a SIB file works fine every time. In fact, exporting from a SIL file to any other format works using the automation method.
However, given a SIB file, the ExportTo method simply does nothing, no matter which export type I choose. The call to EditFile() correctly opens the SIB file in SIL Editor, but the next line just does nothing. I have tried etSIB, etHTML, etXLS and etCSV with no resulting file.
If anyone is interested, Igor has made a new version of the SIL Editor available (v5.0.0.3) which corrects this:
Igor Siticov wrote:Please try to download updated version of SIL Editor from our site. We've found small piece of code that might cause such behavior and fixed it.
The only thing is that converting a SIB to a SIL, although it now works, asks for the delimiter to be entrered. SIL to SIB doesn't ask.
Igor Siticov wrote:We will update SIL Editor to don't ask for delimiter when used from COM
v5.0.0.4 of SILEditor.exe provides this functionality. However, now the delimiter returns to the default ~!@#, which isn't the delimiter I had originally specified.