Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1015
Specify a ".doc" type for generated Word document, rather than ".docx"
posted

Hello all,

I'm working with the Infragistics.Documents.Word library to generate a formatted MS Word document. I'm running into an issue with some of my users have Office 2007 and Windows XP, and they're getting an error when trying to open the document. I really think this is due to the default ".docx" file type provided by the Infragistics library.

I was wondering if there was a way to specify the document type to be that of ".doc" rather than the ".docx". Does this functionality exist in the library? I'm using Infragistics 11.2.

Thanks,

Melissa

Parents
  • 71886
    Offline posted

    Hello Melissa,

    You could specify that the file extension will be .doc in the 'Save()' method, like this:

                Document doc = new Document();
                doc.Save("docs.doc");
    

     Please do not hesitate to contact us if you need any additional assistance.

Reply Children
No Data