Word在c#中转换为pdf

时间:2015-12-11 14:26:03

标签: c# .net pdf ms-word doc

我用来转换代码;

protected void Page_Load(object sender, EventArgs e)
{
    Microsoft.Office.Interop.Word.Application appWord = new Microsoft.Office.Interop.Word.Application();
    wordDocument = appWord.Documents.Open(@"D:\desktop\xxxxxx.docx");
    wordDocument.ExportAsFixedFormat(@"D:\desktop\DocTo.pdf", WdExportFormat.wdExportFormatPDF);
}

public Microsoft.Office.Interop.Word.Document wordDocument { get; set; }

但图片不会出现在pdf中。 İmage不显示 我该如何解决呢? 谢谢你的帮助。

0 个答案:

没有答案
相关问题