You must Sign In to post a response.
  • Category: .NET

    Convert byte() to microsoft.interop.word. document


    i am reading getting data from SSRS report and storing to byte[] , now i want that data to store in microsoft.interop.word document object, but unable to convert byte() to word.document. PFB code. Please help me to get the problem solved.

    Dim pdfContent As Byte() = reportViewer.ServerReport.Render("Word", Nothing, Nothing, Nothing, Nothing, Nothing, Nothing)

    Dim ssrsdoc As New Word.Document

    ssrsdoc = (Word.document)(pdfContent) ----Error

  • #769859
    Hi Naresh,

    You can refer this link:

    I hope this will help you.

    Nirav Lalan
    DNS Gold Member
    "If you can dream it, you can do it."

  • Sign In to post your comments