Is there a way to send the output of a Report.Print() or Report.Publish() to a UltraPrintDocument object so that its printing properties can be manipulated with the PrintDocument and PageSettings objects?
Thanks,
Eric
This is exactly what i want to know too.
It seems simple enough...
I tried 2 things. First i tried this;Dim Doc As New Infragistics.Documents.Report.ReportDim Mem As New IO.MemoryStreamPrintDoc.SaveAsBinary(Mem)Doc.Load(Mem)
That works up until Doc.Load, where it fails and says 'Root element is missing.'
The second thing i tried was this;Dim Doc As New Infragistics.Documents.Report.ReportPrintDoc.SaveAsXml("C:\Test.xml")Doc.Load("C:\Test.xml")Doc.Publish("C:\1.pdf", Infragistics.Documents.Report.FileFormat.PDF)
That appeared to work, except the xml file contained hardly any data and thus the pdf was only 1kb and would not open "This file cannot be opened because it has no pages."
The contents of the xml document (which doesnt appear to contain any of the information about the appointments on the daily overview) is this;
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><a1:ObjectStreamer id="ref-1" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/Infragistics.Shared.Serialization/Infragistics.Win"><ObjectStreamerAssemblyName id="ref-4">Infragistics.Win</ObjectStreamerAssemblyName><EndDate xsi:type="xsd:dateTime">2008-05-14T00:00:00.0000000+12:00</EndDate><Header href="#ref-5"/><EndTime xsi:type="xsd:duration">P0Y0M0DT23H59M59S</EndTime><StartDate xsi:type="xsd:dateTime">2008-05-14T00:00:00.0000000+12:00</StartDate></a1:ObjectStreamer><a2:HeaderFooterPageSection id="ref-5" xmlns:a2="http://schemas.microsoft.com/clr/nsassem/Infragistics.Win.Printing/Infragistics2.Win.v7.2"><TextLeft id="ref-6">Wednesday</TextLeft><TextRight id="ref-7">14/May/2008</TextRight><TextCenter id="ref-8">AIRCRAFT SCHEDULE</TextCenter></a2:HeaderFooterPageSection></SOAP-ENV:Body></SOAP-ENV:Envelope>
I don't beleive there's any wa to do this. You should Submit a feature request to Infragistics.