Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
205
Getting this error -- here's all the info I find from the exception...
posted

Any help on this would be appreciated. this is running the WPF 3 library....

----------------------------------------

_report.Print(false, false); --- 

-------------------------------------

External component has thrown an exception.
System.Printing
StartDocW
Microsoft.Internal.GDIExporter.CNativeMethods, System.Printing, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
file:///C:/Windows/assembly/GAC_64/System.Printing/3.0.0.0__31bf3856ad364e35/System.Printing.dll
v2.0.50727
Method may only be called on a Type for which Type.IsGenericParameter is true.

InfragisticsWPF3.Reporting.v10.2
10.2.20102.1014
v2.0.50727

_COMPlusExceptionCode -532459699 int

at Microsoft.Internal.GDIExporter.CNativeMethods

.StartDocW(GdiSafeDCHandle hdc, GdiDocInfoW docinfo)
at Microsoft.Internal.GDIExporter.CGDIRenderTarget.StartDocumentWithoutCreatingDC(String priterName, String jobName, String filename)
at Microsoft.Internal.AlphaFlattener.MetroToGdiConverter.StartDocumentWithoutCreatingDC(String jobName)
at System.Windows.Xps.Serialization.MXDWSerializationManager.EnablePassThru()
at System.Windows.Xps.XpsDocumentWriter.MxdwInitializeOptimizationConversion(PrintQueue printQueue)
at System.Windows.Xps.XpsDocumentWriter.BeginWrite(Boolean batchMode, Boolean asyncMode, Boolean setPrintTicketHandler, PrintTicket printTicket, PrintTicketLevel printTicketLevel, Boolean printJobIdentifierSet)
at System.Windows.Xps.XpsDocumentWriter.Write(DocumentPaginator documentPaginator, PrintTicket printTicket)
at Infragistics.Windows.Reporting.Report.ProcessXpsDocumentWriter(XpsDocumentWriter writer, PrintTicket printTicket)
at Infragistics.Windows.Reporting.Report.ProcessXpsDocumentWriter(XpsDocumentWriter writer)
at Infragistics.Windows.Reporting.Report.GenerateReport(Object reportObject)
at Infragistics.Windows.Reporting.Report.Print(Boolean showPrintDialog, Boolean showReportProgressControl, FrameworkElement reportProgressControlOwnedElement)
at Infragistics.Windows.Reporting.Report.Print(Boolean showPrintDialog, Boolean showReportProgressControl)
at Measurement.eFSR.FieldTicketRpt.FieldTicketReport_Loaded(Object sender, RoutedEventArgs e)

Parents
No Data
Reply
  • 205
    posted

    This is the code above -- the _report.Print(false,false) ... 

    --------------------------------

    xamReportPreview.GeneratePreview(_report, false, false);
    // 5. ****Call document viewer
    DocumentViewer doc = xamReportPreview.DocumentViewer;
    xamReportPreview.ApplyTemplate();

    -----------------------------------

    I notice that if I comment out the code -- it never errors out but, of course, the report has no values on it...

    If I comment out the DoucumentViewer line it has a problem with "url of uri not found"

    If all the comment code is uncommented it does not fail on every report printed just sometimes? Doesn't seem to be tied to a particular record's data.

Children