I currently upgraded a VB application to a VB.NET application with only a few modifications. One of the functions of the application is to create an Excel spreadsheet with the given values that were input on the users desktop. When i run the application on my end it works perfectly, but as soon as i install it on the users computer i cannot get the app to create/print the Excel file getting the error. (Exception from HRESULT: 0x800A03EC)... i am officially dumbfounded as to why this is occurring because i cannot seem to generate the error on my end.... i have downloaded the 2.0 .NET frameworks on all user machines and cannnot seem to find a resolution.... Any help would be great.
FYI... i already checked for previous EXCEL.EXE processes/images running on the machine.
Thanks in advance... the error details are pasted below.
************** Exception Text **************
System.Runtime. InteropServices .COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC
at Excel._Workshee t.PrintOut(Obje ct From, Object To, Object Copies, Object Preview, Object ActivePrinter, Object PrintToFile, Object Collate, Object PrToFileName)
at ExcelOutput.cEx celOutput.Print ()
at TPNCalc.Pediatr ic.cmdOK_Click( Object sender, EventArgs e)
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
FYI... i already checked for previous EXCEL.EXE processes/images running on the machine.
Thanks in advance... the error details are pasted below.
************** Exception Text **************
System.Runtime. InteropServices .COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC
at Excel._Workshee t.PrintOut(Obje ct From, Object To, Object Copies, Object Preview, Object ActivePrinter, Object PrintToFile, Object Collate, Object PrToFileName)
at ExcelOutput.cEx celOutput.Print ()
at TPNCalc.Pediatr ic.cmdOK_Click( Object sender, EventArgs e)
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)