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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rendering as html

Status
Not open for further replies.

mplbm

Programmer
Feb 9, 2006
24
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top