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
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