Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Please help me out : How to convert "CrystalDecisions.Shared.ExportFormatType.PortableDocFormat" to System.IO.MemoryStream

Please help me out : How to convert "CrystalDecisions.Shared.ExportFormatType.PortableDocFormat" to System.IO.MemoryStream

Scheduled Pinned Locked Moved C#
helptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shanthivasan
    wrote on last edited by
    #1

    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

    H 1 Reply Last reply
    0
    • S shanthivasan

      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

      H Offline
      H Offline
      Harini N K
      wrote on last edited by
      #2

      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 :)

      S 1 Reply Last reply
      0
      • H Harini N K

        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 :)

        S Offline
        S Offline
        shanthivasan
        wrote on last edited by
        #3

        Thank you so much for your timely help.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups