Friday, May 10, 2013

Word interop problem : String parameter too long.

Hi


i'm facing some errors :



// no overload method 'Open' takes '1' arguments.
wordDoc = wordApp.Documents.Open(@"C:\test.docx");

// no overload method 'Close' takes '0' arguments.
((Microsoft.Office.Interop.Word._Document)wordDoc).Close();

// no overload method 'Quit' takes '0' argument.
((Microsoft.Office.Interop.Word._Application)wordApp).Quit();

which version of .net and word are u using ?


i'm using .net 2.0 and word 2007 object library.




http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx


No comments:

Post a Comment