D
DanG
I have several PDF documents available in my app, and I'm trying to
write them all out in sequence. The first is a generated report
rendered to the MemoryStream, and the others are supporting documents
stored in the database as images.
Response.ContentType = "application/pdf"
Response.Buffer = True
Dim b() As Byte = memStream.ToArray
Response.BinaryWrite(b)
Response.BinaryWrite(Image1)
Response.BinaryWrite(Image2)
Response.End()
When I do this, I only see the contents of the last image.
I also tried adding the images to memory stream.
memStream.Write(Image1, 0, ~Image1.Length~)
memStream.Write(Image2, 0, ~Image2.Length~)
Dim b() As Byte = memStream.ToArray
Response.BinaryWrite(b)
Response.End()
The length of memStream incremented correctly, but I get the same
results where I only see the last image.
Any clues on how to concatenate the PDFs?
THEN...
if that can be done, is there a way to add FormFeeds between the
images? I tried writing out an Chr(12), though I didn't really expect
it to work.
Thanks
Dan
write them all out in sequence. The first is a generated report
rendered to the MemoryStream, and the others are supporting documents
stored in the database as images.
Response.ContentType = "application/pdf"
Response.Buffer = True
Dim b() As Byte = memStream.ToArray
Response.BinaryWrite(b)
Response.BinaryWrite(Image1)
Response.BinaryWrite(Image2)
Response.End()
When I do this, I only see the contents of the last image.
I also tried adding the images to memory stream.
memStream.Write(Image1, 0, ~Image1.Length~)
memStream.Write(Image2, 0, ~Image2.Length~)
Dim b() As Byte = memStream.ToArray
Response.BinaryWrite(b)
Response.End()
The length of memStream incremented correctly, but I get the same
results where I only see the last image.
Any clues on how to concatenate the PDFs?
THEN...
if that can be done, is there a way to add FormFeeds between the
images? I tried writing out an Chr(12), though I didn't really expect
it to work.
Thanks
Dan