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

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

    Hi,

    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

    Regards,
    Naresh
  • #769859
    Hi Naresh,

    You can refer this link:
    https://www.aspsnippets.com/Articles/Export-RDLC-Report-to-Word-programmatically-in-ASPNet.aspx

    I hope this will help you.

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


  • Sign In to post your comments