次のコードフラグメントが与えられた場合
wordApp.Documents.Open(FileName: wordDoc, Visible: false);
if (wordApp.Documents.Count > 0)
{
_Document thisDoc = wordApp.ActiveDocument;
thisDoc.SaveAs(FileName: rtfDoc, FileFormat: WdSaveFormat.wdFormatRTF);
ディスクに保存せずにこの変換を実行する方法を誰かが提案できますか?
おそらく StringBuilder オブジェクトとして、メモリ内の rtf ドキュメントの生のテキストが必要です。