Hi everyone.
I rendered two reports to PDF, joined the two byte arrays into one, created a FileStream and write the byte array that contains the reports into the file. The file is created with the correct length but, when I open the PDF, it only shows the last report. Does anyone have a solution for this?
Thanks,
Aligieri
Quote:
Originally Posted by Someone11
Hey thanks for the reply, i started thinking about this and now im not sure if this will work. But the render method returns a byte array so i tried to render two reports and return it in Byte1 and Byte2 arrays. Then i declared a filestream and created a file with the length of both these arrays lengths. THen i tried to call the Write method and write the two bytes into the file. Would this work?
I've got the following code
Two byte arrays which have been rendered and then
Dim length As Integer = Data.Length + Data2.Length
Dim stream As FileStream = File.Create("report.pdf", length)
stream.Write(Data, 0, Data.Length)
stream.Write(Data2, Data.Length length)
stream.Close()