How do I display a Byte array as part of an ASP.NET webpage? (SQL Reporting Services)
Posted on 2004-07-30
I am looking to include the contents of a Byte array into an ASP.NET webpage I am using. I am generating this Byte array using SQL Server 2000 Reporting Services, although you do not need to be familiar with this technology to help me out. My goal is to display this Byte array in a fixed place in harmony with the rest of my ASP.NET page controls.
Here is my backend code, written in C#:
localhost.ReportingService rs = new localhost.ReportingService();
/* stuff */
report = rs.Render(all those parameters);
/* more stuff */
The key line is "Reponse.BinaryWrite(report);". The Report generation stuff works. What I'm getting is a webpage loading displaying the Report at the top, followed by the header and the rest of the page.
What I'd like is for this report to display in a certain place...say within a panel control, for example. How can I do this?
Thank you very much,