I am trying to send a rendered PDF to the client using the below:
Code: Visual Basic.NET
Response.Clear()
Response.ContentType = "application/pdf"
Response.AddHeader("content-disposition", "attachment; filename=test.pdf")
pdoc.Save(Response.OutputStream)
Response.End()
I have also tried saving to a memory stream and sending with no luck.
If I use the same code to create the PDF but instead save to file it works fine.
Code: Visual Basic.NET
pdoc.Save(Request.PhysicalApplicationPath + "\pdf\test.pdf")
I have no issue sending XLSX or DOCX files to the client from this same page.
Any help would be appreciated.