Asked By
phoenix suy
10 points
N/A
Posted on - 01/12/2012
Please help me convert MS Office documents to PDF with C# program. I also need help to convert Word files to be like Excel files and PowerPoint files and etc. with some reference to microsoft.office.interop.Word and microsoft.office.interop.powerpoint. I am a C# developer. I need really your help on how to convert these files.
Need Help in Converting MS Office Files using C#
Hi Jerry,
Two packs can be installed on two machines with separate users, accessing the software at the similar time. However, not sure about any written information, stating the same on any of Microsoft’s websites. I think one license per computer. And to check if Office 2011 is compatible with your PowerBook G4, you may find more here.
Need Help in Converting MS Office Files using C#
Â
Hi,
Â
First you have to create an object for the Microsoft Word. Using following code
Microsoft.Office.Interop.Word.Application xxxx
For excel : Microsoft.Office.Interop.Excel.Application xxxx
xxxx means assigned name.
Then give a dummy value because C# doesn’t have any optional arguments.
Assign a document using following command
Document docname
Finally close the document. I am pretty sure you need more information to do this correctly.
I will give you a Microsoft reference link. I hope this will help you to improve your knowledge.
https://msdn.microsoft.com/en-us/library/bb412305(v=office.12).aspx
Â