cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Prime4 and excel error

ptc-1739038
5-Regular Member

Prime4 and excel error

Every time I try to embed a excel sheet I get  An Unhandled exception occurred on the dispatcher thread. See C:\Programdata\PTC\Mathcad Prime\Logs\Mathcad Prime_Exception_20151021_135622.log for more information. Prime will attempt to save any modified files and close. Please restart the application."

Saw this mentioned for practically every version of Prime here, but no solution ??

Windows 10, Office 2016

7 REPLIES 7

Hi,

 

according to https://support.ptc.com/WCMS/files/172595/en/Mathcad_Prime_Migration_Guide_en-US.pdf, page 63, Mathcad Prime 4.0 is compatible with Microsoft Excel 2003, 2007, 2010.


Martin Hanák
ptc-1739038
5-Regular Member
(To:MartinHanak)

works fine with every combination Win8/10 Office2013/2016 on approx. 250 pc in my college + on my laptop

so I think this is outdated information ....

LucMeekes
23-Emerald III
(To:ptc-1739038)

Apparently not with 'every', or you would not be complaining...

Anyway, you could try to 'reconfigure', Prime (move the config file, see here: https://community.ptc.com/t5/PTC-Mathcad-Questions/Mathcad-Prime-4-0-doesn-t-start-anymore/td-p/492614/page/3 )

If that does not help, re-install Prime.

If that does not help, definitely contact PTC support.

 

Success!
Luc

ptc-1739038
5-Regular Member
(To:LucMeekes)

Yes on 'every' comnbination on the 200+ PCs in my workplace but not the one at home.

On the mentioned path C:\Users\CurrentUser\AppData\Local\PTC\ there is no config file ...

In the log file I found

Build Number : 2017.02.26.001
System Culture : de-DE; Current UI Culture : de-DE
Architecture: x64
Application version is: PTC Mathcad Prime 4.0 F000
Current license type is: CommercialTerm



Exception data:
System.Object:
System.InvalidCastException: Das COM-Objekt des Typs "System.__ComObject" kann nicht in den Schnittstellentyp
"Microsoft.Office.Interop.Excel.Windows" umgewandelt werden. Dieser Vorgang konnte nicht durchgeführt werden, da der QueryInterface-Aufruf
 an die COM-Komponente für die Schnittstelle mit der IID "{00020892-0000-0000-C000-000000000046}" aufgrund des folgenden Fehlers nicht
durchgeführt werden konnte: Schnittstelle nicht registriert (Ausnahme von HRESULT: 0x80040155).
   bei System.StubHelpers.InterfaceMarshaler.ConvertToManaged(IntPtr pUnk, IntPtr itfMT, IntPtr classMT, Int32 flags)
   bei Microsoft.Office.Interop.Excel._Workbook.get_Windows()
   bei Ptc.Controls.ExcelComponent.Model.ExcelContainerModel.HideOleObject()
   bei Ptc.Controls.ExcelComponent.ViewModel.ExcelContainerViewModel.CreateOle()
   bei Ptc.Controls.ExcelComponent.ExcelContainer.CreateWindowlessOle()
   bei Ptc.Controls.ExcelComponent.ExcelComponentControl..ctor(Boolean createExcelContainer, Nullable`1 gridCellSize)
   bei Ptc.Controls.ExcelComponent.ExcelComponentControl..ctor(Nullable`1 gridCellSize)
   bei Ptc.Controls.Worksheet.ControlFactory.CreateExcelComponentControl(Nullable`1 gridCellSize)
   bei Ptc.Controls.Worksheet.WorksheetViewModel.CreateExcelComponentControl()
   bei System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   bei System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
   bei System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   bei System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   bei System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   bei System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
   bei Ptc.FunctionalitiesLimitation.UIFunctionalityCommandWrapper.Execute(Object parameter)
   bei DevComponents.WpfRibbon.ButtonDropDown.ExecuteCommand(ICommandSource commandSource)
   bei DevComponents.WpfRibbon.ButtonDropDown.InvokeClickAfterRender(Object arg)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

Does this help ...

BTW: I think I tried a reinstall allready, no change

LucMeekes
23-Emerald III
(To:ptc-1739038)

No, that does not help. It might help PTC support though...

 

So you're using the original edition (F000) of Prime 4. There's an update of it, should be available to users on who actually bought it.

(I did not, too costly for what it brings and compared to the budget I'm willing to spend on it)

 

Success!
Luc

LucMeekes
23-Emerald III
(To:LucMeekes)

Ah no, it would be just pure luck if this service release solves your problem:

https://community.ptc.com/t5/PTC-Mathcad-Blog/Announcing-PTC-Mathcad-Prime-4-0-M010/ba-p/475243/jump-to/first-unread-message

 

Luc

Please send your issue to PTC's tech support by using "Mathcad Support Center":
http://support.ptc.com/support/mathcad_supportCenterOpt.htm

Top Tags