Range.InsertFIle メソッドで単語に html ファイルを挿入しようとしました。しかし、それは機能していません。私を助けてください。
object oFalse = false;
string strFileName = @"E:\Workbook\SampleOutput\SampleOutput\SupportFiles\Report_43321100_ER.html";
Word.Paragraph oPara1;
oPara1 = oDoc.Content.Paragraphs.Add(ref oMissing);
object oTrue = true;
object oRange = oPara1.Range;
// oDoc.Bookmarks.Add("BookMark", oRange);
try
{
oPara1.Range.InsertFile(strFileName, ref oRange, ref oFalse, ref oTrue, ref oFalse);
}
catch (Exception ex)
{
}