[CS4] Removing notes from exported RTF
When you export a story as RTF any notes in the story are added to the end of the exported rtf. (It would have been most excellent if the notes were placed where they appear in the story and made invisible).
To avoid having the notes show up in the rtf I use the following:
sequence = CmdUtils::BeginAbortableCmdSeq();
sequence->SetName(PMString("rtf notes"));
Utils<INoteUtils> noteUtils;
noteUtils->ClearAllNotes(inTextModel);
exporter->ExportToFile(idFile, inDocument, textTarget, formatName, kSuppressUI);
CmdUtils::AbortCommandSequence(sequence);
This works except that the story in the ui flashes with the remove/undo-remove notes.
Is there a better way to do this? Is there some way I can tell the exporter to not write notes?
Thanks
-doug
