This is a migrated thread and some comments may be shown as answers.

Exception while Printing using Pdf viewer

1 Answer 75 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Kedar
Top achievements
Rank 1
Kedar asked on 29 Jul 2013, 07:20 AM
Hi Telerik Team,

We are getting following exception while printing in windows 7 OS. Could you please provide inputs.

---------------------------------------
Exception Message
Object reference not set to an instance of an object.
Exception stack trace
   at Microsoft.Internal.GDIExporter.CopyTo(UInt16& buffer, Int32 len, String s)
   at Microsoft.Internal.GDIExporter.CGDIRenderTarget.CreateFontW(GlyphRun pGlyphRun, Double fontSize, Double scaleY)
   at Microsoft.Internal.GDIExporter.CGDIRenderTarget.RenderTextThroughGDI(GlyphRun pGlyphRun, Brush pBrush)
   at Microsoft.Internal.GDIExporter.CGDIRenderTarget.DrawGlyphRun(Brush pBrush, GlyphRun glyphRun)
   at Microsoft.Internal.AlphaFlattener.BrushProxyDecomposer.Microsoft.Internal.AlphaFlattener.IProxyDrawingContext.DrawGlyphs(GlyphRun glyphrun, Geometry clip, Matrix trans, BrushProxy foreground)
   at Microsoft.Internal.AlphaFlattener.PrimitiveRenderer.DrawGlyphs(GlyphRun glyphrun, Rect bounds, Matrix trans, String desp)
   at Microsoft.Internal.AlphaFlattener.Flattener.AlphaRender(Primitive primitive, List`1 overlapping, Int32 overlapHasTransparency, Boolean disjoint, String desp)
   at Microsoft.Internal.AlphaFlattener.Flattener.AlphaFlatten(IProxyDrawingContext dc, Boolean disjoint)
   at Microsoft.Internal.AlphaFlattener.Flattener.Convert(Primitive tree, ILegacyDevice dc, Double width, Double height, Double dpix, Double dpiy, Nullable`1 quality)
   at Microsoft.Internal.AlphaFlattener.MetroDevice0.FlushPage(ILegacyDevice sink, Double width, Double height, Nullable`1 outputQuality)
   at Microsoft.Internal.AlphaFlattener.MetroToGdiConverter.FlushPage()
   at System.Windows.Xps.Serialization.NgcSerializationManager.EndPage()
   at System.Windows.Xps.Serialization.NgcDocumentPageSerializer.SerializeObject(Object serializedObject)
   at System.Windows.Xps.Serialization.NgcDocumentPaginatorSerializer.SerializeObject(Object serializedObject)
   at System.Windows.Xps.Serialization.NgcSerializationManager.SaveAsXaml(Object serializedObject)
   at System.Windows.Xps.XpsDocumentWriter.SaveAsXaml(Object serializedObject, Boolean isSync)
   at System.Windows.Xps.XpsDocumentWriter.Write(DocumentPaginator documentPaginator)
   at System.Windows.Controls.PrintDialog.PrintDocument(DocumentPaginator documentPaginator, String description)
   at Telerik.Windows.Documents.Fixed.Print.PrintManager.Print(PrintSettings settings)
   at Telerik.Windows.Controls.FixedDocumentViewerBase.Print(PrintSettings settings)
   at Telerik.Windows.Controls.FixedDocumentViewerBase.Print()
   at PrintPDF_WPFApp.MainWindow.pdfViewer1_DocumentChanged(Object sender, EventArgs e) in d:\DC\Rnd\AOIP\PrintPDF_WPFApp\PrintPDF_WPFApp\MainWindow.xaml.cs:line 75
---------------------------------------

thanks,
Kedar.

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 31 Jul 2013, 08:09 AM
Hello Kedar,

Could you send us a sample project which reproduces this issue, so we can examine the cause of the exception ?

Regards,
Alexander
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
PDFViewer
Asked by
Kedar
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or