Please help me out : How to convert "CrystalDecisions.Shared.ExportFormatType.PortableDocFormat" to System.IO.MemoryStream
-
I have to export crystal report data into excel.To achieve that, I have written coding like this MemoryStream oStream; oStream=(MemoryStream)(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat); Response.clear(); Response.Buffer=true; Response.ContentType="application/pdf"; Response.BinaryWrite(oStream.ToArray()); Response.End(); But i am getting compile-time error such as "Cannot convert type 'CrystalDecisions.Shared.ExportFormatType.PortableDocFormat' to 'System.IO.MemoryStream' " Can anyone help point out what mistake i have done on coding. Thanks in advance Shanthi
-
I have to export crystal report data into excel.To achieve that, I have written coding like this MemoryStream oStream; oStream=(MemoryStream)(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat); Response.clear(); Response.Buffer=true; Response.ContentType="application/pdf"; Response.BinaryWrite(oStream.ToArray()); Response.End(); But i am getting compile-time error such as "Cannot convert type 'CrystalDecisions.Shared.ExportFormatType.PortableDocFormat' to 'System.IO.MemoryStream' " Can anyone help point out what mistake i have done on coding. Thanks in advance Shanthi
Hi Check this link http://www.codeproject.com/script/comments/forums.asp?forumid=1649&mode=all&userid=2897284&select=1929429&df=100&noise=1&mpp=50#xx1929429xx[^]
Rate this message. Thank you. Harini :)
-
Hi Check this link http://www.codeproject.com/script/comments/forums.asp?forumid=1649&mode=all&userid=2897284&select=1929429&df=100&noise=1&mpp=50#xx1929429xx[^]
Rate this message. Thank you. Harini :)
Thank you so much for your timely help.