02-08-20, 05:27 PM
السؤال الاول :
يجب اضافة مرجع word الى المشروع
ومن ثم كود التحويل هو :
https://stackoverflow.com/a/19560309
يجب اضافة مرجع word الى المشروع
ومن ثم كود التحويل هو :
كود :
Dim appWord As New Microsoft.Office.Interop.Word.Application()
Dim wordDocument As Microsoft.Office.Interop.Word.Document
wordDocument = appWord.Documents.Open("E:\x.docx")
wordDocument.ExportAsFixedFormat("E:\x.pdf", Microsoft.Office.Interop.Word.WdExportFormat.wdExportFormatPDF)
