Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reporting services rendering as html

Status
Not open for further replies.

mplbm

Programmer
Feb 9, 2006
24
0
0
GB
I can manage to render as PDF, but my code for HTML doesn't work (see below). I don't get an error, but nothing appears when I load the page. Can anybody please help?

ReportingService rs = new ReportingService();

rs.Credentials = new System.Net.NetworkCredential("****", "****", "");

Byte[] result;

string encoding;
string mimetype;
ParameterValue[] parametersUsed;
Warning[] warnings;
string[] streamids;

result = rs.Render("/lovelyjubbl/reports/QBRatings", "HTML4.0",null,null,null,null,null,out encoding,out mimetype,out parametersUsed,out warnings,out streamids);

Response.ClearContent();
Response.AppendHeader("content-length", result.Length.ToString());
Response.ContentType = "text/html";
//Response.ContentType = "application/pdf";
Response.BinaryWrite(result);
Response.Flush();
Response.Close();
Thanks,

Mike
 
You might want to post this over in the Reporting Services forum forum1462

Denny
MCSA (2003) / MCDBA (SQL 2000) / MCTS (SQL 2005)

--Anything is possible. All it takes is a little research. (Me)
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top