Help

15/06/2005 - 15:18 por xxx | Informe spam
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...




.





.



.

Preguntas similare

Leer las respuestas

#1 Stoney el frío
15/06/2005 - 15:59 | Informe spam
coñe, de vez en cuando alguna coma en las frases viene de perlas para una
mejor comprensión.

Saludetes,

Stoney

"xxx" escribió en el mensaje
news:02d601c571ac$a76bca60$
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" escribió en


el mensaje
news:058201c570df$ccea4410$
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" escribió en


el mensaje
news:002a01c57046$38584de0$
como transformo mi reporte de sql reporting services a




pdf
de forma automatica...




.





.



.
email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida