Hi,
I’m trying to save a document to pdf. When the document contains text, I get a “System.NotSupportedException” (exception details are attached at the end of this post). The same happens when I save as Xps. An empty document or a document with just images (like in the ImageToPdf example) is saved correctly.
I’m using Visual Studio 2008 with .Net 3.5SP1 on a 64 bit Vista computer. The version of Aspose.Words is 7.0.0
System.NotSupportedException was unhandled
Message="Unknown name table format."
Source="Aspose.Words"
StackTrace:
bij 䍓.䐈.䐧()
bij 䍓.䐈.䐝(String Ӽ)
bij 䍓.䐈.䐻(String 䐼)
bij 䍓.䐈.get_ਮ()
bij 䍓.䐈.䐢(String せ)
bij 䍓.䐈.䎉(String せ, FontStyle ঈ, Boolean 䐜)
bij 䍓.䐈.ਚ(String せ, FontStyle ঈ, Boolean 䐜)
bij 䊠.䍂…ctor(䋮 context, String familyName, FontStyle requestedStyle)
bij 䊠.䎓…ctor(䋮 context, String familyName, FontStyle requestedStyle)
bij 䊠.䍂.䍏(䋮 , String せ, FontStyle ਪ, Boolean 䍐)
bij 䊠.䎂.ਚ(String せ, FontStyle ঈ, Boolean 䍐)
bij 䊠.䖿.䗇(⑽ 䖪)
bij 䊠.䖤.䂳(⑽ 䖪)
bij 䊠.䊶.VisitGlyphs(⑽ glyphs)
bij ⑪.⑽.Accept(⑸ visitor)
bij ⑪.⑵.Accept(⑸ visitor)
bij ⑪.⒕.Accept(⑸ visitor)
bij ⑪.⑵.Accept(⑸ visitor)
bij ⑪.⒕.Accept(⑸ visitor)
bij ⑪.⑵.Accept(⑸ visitor)
bij ⑪.⒕.Accept(⑸ visitor)
bij ⑪.⑵.Accept(⑸ visitor)
bij ⑪.⑹.Accept(⑸ visitor)
bij 䊠.䊶.(⑷ Ԉ)
bij Aspose.Words.Document.SaveToPdf(Int32 pageIndex, Int32 pageCount, Stream stream, PdfOptions options)
bij Aspose.Words.Document.SaveToPdf(Int32 pageIndex, Int32 pageCount, String fileName, PdfOptions options)
bij Aspose.Words.Document.SaveToPdf(String fileName)
bij AsposeWordsTest1.Window1.Button_Click(Object sender, RoutedEventArgs e) in C:\Users\Jaap\Documents\Visual Studio 2008\Projects\AsposeWordsTest1\AsposeWordsTest1\Window1.xaml.cs:regel 48
bij System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bij System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
bij System.Windows.Controls.Button.OnClick()
bij System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
bij System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bij System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bij System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
bij System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
bij System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bij System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bij System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
bij System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
bij System.Windows.Input.InputManager.ProcessStagingArea()
bij System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
bij System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
bij System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
bij System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bij System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bij MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bij MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
bij System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
bij System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
bij System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
bij MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
bij MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
bij System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage(MSG& msg)
bij System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
bij System.Windows.Application.RunInternal(Window window)
bij AsposeWordsTest1.App.Main() in C:\Users\Jaap\Documents\Visual Studio 2008\Projects\AsposeWordsTest1\AsposeWordsTest1\obj\Debug\App.g.cs:regel 0
bij System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
bij Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bij System.Threading.ThreadHelper.ThreadStart()
InnerException: