tengo el SP2 de Reporting Services el Render no cambio??
Deberías establecer una referencia al webservice del
servidor de reportes
que estes utilizando.
A continuación te indico el código necesario para
devolver un reporte en
formato PDF:
ReportServer.ReportingService rep;
string deviceinfo;
//Parámetros utilizados como retorno de información.
string encoding;
ReportServer.ParameterValue[] outparams;
ReportServer.Warning[] warnings;
string[] streams;
//Se inicializan los parámetros de retorno de la
función.
mimetype = string.Empty;
output = null;
rep = new ReportServer.ReportingService();
rep.Url =
http://server/ReportServer/ReportService.asmx;
rep.Credentials = CredentialCache.DefaultCredentials;
rep.SessionHeaderValue = new ReportServer.SessionHeader
();
deviceinfo = "<DeviceInfo></DeviceInfo>";
output = rep.Render("\Reporte1", "PDF", null,
deviceinfo,
ParameterValues,
null, string.Empty, out encoding, out mimetype, out
outparams, out
warnings, out streams);
Revisa el ejemplo, y si tienes problemas me lo comentas.
Un Saludo,
Miguel Angel Campos
MCAD.NET
"xxx" <anonymous@discussions.microsoft.com> escribió en
el mensaje
news:058201c570df$ccea4410$a501280a@phx.gbl...
mediantes un formulario windows form, al apretar el boton
este iomprime o lo muestra en el explorer pero ahora
necesito la posibilidad que lo envie a un pdf sin usar el
explorer>--Mensaje original--
De que forma estas ejecutando el reporte, mediante URL o
por WebService
directamente?
Un Saludo,
Miguel Angel Campos
MCAD.NET
"xxx" <anonymous@discussions.microsoft.com> escribió en
el mensaje
news:002a01c57046$38584de0$a601280a@phx.gbl...
como transformo mi reporte de sql reporting services a
pdf
de forma automatica...
.
.
..
.
Leer las respuestas