1
私のコードに型 'System.Drawing.Font' を変換できません:は、暗黙のうちに 'Microsoft.Office.Interop.Word.Font'
public class Fonts
{
Font Header = new System.Drawing.Font("Tahoma", 10, FontStyle.Bold);
ToWord ToWord = new ToWord(Header);
}
public class ToWord
{
public ToWord(System.Drawing.Font Header)
{
......
Paragraph pIndex = DocumnetWord.Paragraphs.Add(ref oMissing);
pIndex.Range.Font =Header;//error compile....
}
}
エラー:
は、暗黙的に型「システムを変換できません。 .Drawing.Font 'to ' Microsoft.Office.Interop.Word.Font '
正しいコードは何ですか?
は、変換する方法はありますか? – mrJack