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.PrintingStartDocWMicrosoft.Internal.GDIExporter.CNativeMethods, System.Printing, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35file:///C:/Windows/assembly/GAC_64/System.Printing/3.0.0.0__31bf3856ad364e35/System.Printing.dllv2.0.50727Method may only be called on a Type for which Type.IsGenericParameter is true.
InfragisticsWPF3.Reporting.v10.210.2.20102.1014v2.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)
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.
Hello Paul,
Thank you for your post. I have been looking into it and I created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.
Looking forward for your reply.
I appreciate that very much... I'll try our sample and let you know...
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.