aggiungo il codice dell'errore che esce fuori
************** Testo dell'eccezione **************
System.Runtime.InteropServices.COMException (0x800A1066): Comando fallito
in Microsoft.Office.Interop.Word.Documents.Close(Obje ct& SaveChanges, Object& OriginalFormat, Object& RouteDocument)
in WindowsApplication1.riepilogodati.Button2_Click(Ob ject sender, EventArgs e)
in System.Windows.Forms.Control.OnClick(EventArgs e)
in System.Windows.Forms.Button.OnClick(EventArgs e)
in System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
in System.Windows.Forms.Control.WndProc(Message& m)
in System.Windows.Forms.ButtonBase.WndProc(Message& m)
in System.Windows.Forms.Button.WndProc(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
|