Thank you very much @Joyzhao-MSFT for your reply. That is helpful, but haven't resolved my issue completely.
There are still two issues which haven't clear.
- How to pass user's credential with URL access, such as reportexecution2005.asmx using to?
ReportExecutionService rs = new ReportExecutionService();
rs.Credentials = new NetworkCredential(
SsrsServiceAccountActiveDirectoryUserName,
SsrsServiceAccountActiveDirectoryPassword,
SsrsServiceAccountActiveDirectoryDomain);rs.Url = ReportExecution2005EndPointUrl; rs.ExecutionHeaderValue = new ExecutionHeader();
- How to save this PDF file as byte[], such as
private static byte[] RenderReportBytes(ReportExecutionService rs)
{
string deviceInfo = "<DeviceInfo><Toolbar>False</Toolbar></DeviceInfo>";
string mimeType;
string encoding;
string[] streamId;
Warning[] warning;
?var result = rs.Render("PDF", deviceInfo, out mimeType, out encoding, out encoding, out warning, out streamId); return result; }
Many thanks