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