It is only compatible to Office 2010?

Aug 2, 2012 at 2:23 PM

I have Office 2007, and it trhow some HRESULT Errors, Is something about the Office version.. or some Known issues?

Sep 3, 2013 at 5:01 PM
I'm using Office 2010 and i got the same error, this is the simple code i'm using to export a table to Word:

Private Sub ExportToWord_Execute()
      OfficeIntegration.Word.Export(Me.Products, False)
End Sub

Then when i execute the code i get the followin error:

System.Runtime.InteropServices.COMException was unhandled by user code
ErrorCode=-2146822454
Message=Exception from HRESULT: 0x800A16CA
StackTrace:
   at MS.Internal.ComAutomation.ComAutomationNative.CheckInvokeHResult(UInt32 hr, String memberName, String exceptionSource, String exceptionDescription, String exceptionHelpFile, UInt32 exceptionHelpContext)
   at MS.Internal.ComAutomation.ComAutomationNative.Invoke(Boolean tryInvoke, String memberName, ComAutomationInvokeType invokeType, ComAutomationInteropValue[] rgParams, IntPtr nativePeer, ComAutomationInteropValue& returnValue)
   at MS.Internal.ComAutomation.ComAutomationObject.InvokeImpl(Boolean tryInvoke, String name, ComAutomationInvokeType invokeType, Object& returnValue, Object[] args)
   at MS.Internal.ComAutomation.ComAutomationObject.Invoke(String name, ComAutomationInvokeType invokeType, Object[] args)
   at System.Runtime.InteropServices.Automation.AutomationMetaObjectProvider.TrySetMember(SetMemberBinder binder, Object value)
   at System.Runtime.InteropServices.Automation.AutomationMetaObjectProviderBase.<.cctor>b__3(Object obj, SetMemberBinder binder, Object value)
   at CallSite.Target(Closure , CallSite , Object , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
   at Microsoft.VisualBasic.CompilerServices.IDOUtils.CreateFuncCallSiteAndInvoke(CallSiteBinder Action, Object Instance, Object[] Arguments)
   at Microsoft.VisualBasic.CompilerServices.IDOBinder.IDOSet(IDynamicMetaObjectProvider Instance, String MemberName, String[] ArgumentNames, Object[] Arguments)
   at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateSet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments)
   at OfficeIntegration.WordHelper.AddTable(Int32 RowCount, Int32 ColumnCount)
   at OfficeIntegration.Word.Export(IVisualCollection Collection, Boolean UseActiveDocument)
   at LightSwitchApplication.EditableProductsGrid.ExportToWord_Execute()
   at LightSwitchApplication.EditableProductsGrid.DetailsClass.MethodSetProperties._ExportToWord_InvokeMethod(DetailsClass d, ReadOnlyCollection`1 args)
   at Microsoft.LightSwitch.Details.Framework.Internal.BusinessMethodImplementation`2.<TryInvokeMethod>b__5()
   at Microsoft.LightSwitch.Utilities.Internal.UserCodeHelper.CallUserCode(Type sourceType, String methodName, String instance, String operation, ILoggingContext context, Action action, String additionalText, Func`1 getCompletedMessage, Boolean tryHandleException, Boolean swallowException, Exception& exception)
InnerException: MS.Internal.ComAutomation.ComAutomationObjectException
   ErrorCode=-2146822454
   Message=El elemento con el nombre especificado no existe.
(Source=Microsoft Word)
(HelpFile=wdmain11.chm#25314)
   InnerException: