I need to transform it in stream to be able to get it in my client then export it to pdf.
but When I to the ExportToStream I get this error
System.InvalidOperationException: There was an error generating the XML document. ---> System.InvalidOperationException: Timeouts are not supported on this stream.
at System.IO.Stream.get_ReadTimeout()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write34_MemoryStream(String n, String ns, MemoryStream o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write35_GetReportDocumentResult(String n, String ns, GetReportDocumentResult o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write53_GetReportDocumentResult(Object o)
at Microsoft.Xml.Serialization.GeneratedAssembly.GetReportDocumentResultSerializer.Serialize(Object objectToSerialize, XmlSerializationWriter writer)
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
at System.Xml.Serialization.XmlSerializer.Serialize(TextWriter textWriter, Object o, XmlSerializerNamespaces namespaces)
at System.Xml.Serialization.XmlSerializer.Serialize(TextWriter textWriter, Object o)
at System.Web.Services.Protocols.XmlReturnWriter.Write(HttpResponse response, Stream outputStream, Object returnValue)
at System.Web.Services.Protocols.HttpServerProtocol.WriteReturns(Object[] returnValues, Stream outputStream)
at System.Web.Services.Protocols.WebServiceHandler.WriteReturns(Object[] returnValues)
at System.Web.Services.Protocols.WebServiceHandler.Invoke()
jmy07
Member
28 Points
32 Posts
Timeout when exporttoStream
Nov 09, 2012 02:17 PM|LINK
hi,
Can anyone help me with this ?
I have a webservice calling the .rpt crystal report
_Result.StatementReport = (MemoryStream)document.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat); _Result.ReturnCode = 0;but When I to the ExportToStream I get this error
Thank you for your help