Actually I just saw that viewer code you mentioned. Currently I am using the
URL based method and in some instances the MS supplied viewer control. Both
we are trying to solve some security issues RS presents. One thing that was
mentioned was to use the web services so everything is done server side. We
are using a SSL accelerator and some other hardware. Hopefully the network
from the external URL and not our internal SQL server. Thanks for the tip
"AG" wrote:
> Ahhh the image dilema. You essentially need to call another page utilizing
> some session state to get the images and stream back. You can see what I
> mean by going to
www.codeproject.com. There is a soap viewer implementation
> that has what you need. Happy reporting. As a side note I have implemented
> a fully soap enabled viewer to display reports via the web (so it can for
> sure be done). No RS viewer!
>
> "jrlichina" wrote:
>
> > My report has images embedded in the report and when I render the report it
> > shows everything but the images. Any ideas?
> >
> > ReportingService rs = new ReportingService();
> > rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
> >
> > // Render arguments
> > byte[] ResultStream = null;
> > byte[] image = null;
> > string optionalString = null;
> > string reportPath = "/CIM/AuditReport";
> > string format = "HTML4.0";
> > string historyID = null;
> >
> > string devInfo =
> > @"<DeviceInfo><Toolbar>False</Toolbar><HTMLFragment>True</HTMLFragment></DeviceInfo>";
> >
> > // Prepare report parameter.
> > ParameterValue[] parameters = new ParameterValue[1];
> > parameters[0] = new ParameterValue();
> > parameters[0].Name = "inJobID";
> > parameters[0].Value = "19040";
> > DataSourceCredentials[] credentials = null;
> > string showHideToggle = null;
> > string encoding;
> > string mimeType;
> > Warning[] warnings = null;
> > ParameterValue[] reportHistoryParameters = null;
> > string[] streamIDs = null;
> > SessionHeader sh = new SessionHeader();
> > rs.SessionHeaderValue = sh;
> >
> > try
> > {
> > ResultStream = rs.Render(reportPath, format, historyID, devInfo,
> > parameters, credentials, showHideToggle, out encoding, out mimeType, out
> > reportHistoryParameters, out warnings,out streamIDs);
> >
> > // Write the report to Response
> > Response.BinaryWrite(ResultStream);
> > }
> > catch (Exception ex)
> > {
> > string sMsg;
> > sMsg = ex.Message;
> > }
> >
> >