We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convertin file (.docx- .xls- .ppt- .msg) to pdf

hi sir,

I am using aspose total to convert (.docx, .xls, .ppt, .msg) file to PDF . When i open word document from one file location and then pass the file location to convert to PDF we caught error message for example(“The file could not convert “E:\Devagi1.docx” it can opened in another process”). Please give me solution for above problem

sample Code:
MessageBox.Show(“Inside aspose doc”)

Dim wordLicense As Aspose.Words.License = New Aspose.Words.License()
wordLicense.SetLicense(Application.StartupPath + “\Aspose.Total.lic”)

Dim loadOptions As Aspose.Words.LoadOptions = New Aspose.Words.LoadOptions
loadOptions.LoadFormat = Aspose.Words.LoadFormat.Auto
Dim doc As New Aspose.Words.Document(inputfile)

Hi Snthil,

When you open file in MS Word, MS Word locks the file for editing by another application and you cannot load the file in Aspose.Words in this case. You should first load the file in Aspose.Words and then you can open it in another application.

Best Regards,