Need Help in Converting MS Office Files using C#

Asked By 10 points N/A Posted on -
qa-featured

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.

SHARE
Best Answer by Scott Douglas
Answered By 0 points N/A #103328

Need Help in Converting MS Office Files using C#

qa-featured

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 about the compatibility concern office 2011 is compatible with PowerBook G4. You can find more here.

Best Answer
Best Answer
Answered By 0 points N/A #103329

Need Help in Converting MS Office Files using C#

qa-featured

 

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.

http://msdn.microsoft.com/en-us/library/bb412305(v=office.12).aspx

 

Login/Register to Answer

Related Questions