Skip to main content
K.Daube
Community Expert
Community Expert
February 24, 2015
Question

Open an RTF document

  • February 24, 2015
  • 0 replies
  • 385 views

After a RTF has been processed by EndNote it is opened in FM and the paragraphs are handled.

It turns out that I do not need to set special Open parameters to specify the filter RTF (which is requested when opening manually). This is the central part of my script:

openParams = GetOpenDefaultParams();
  openReturnParams =  new PropVals(); 
  newDoc = Open (fileName, openParams, openReturnParams); 
  pgf = newDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;  // get first pgf in flow

All works fine - for me it's a mystery, but a welcome one!

See the whole test script and test-file at my DropBox.

This topic has been closed for replies.