Friday, February 24, 2012

Capturing a PDF file

I have a report that is being rendered to PDF using the UrlAccess method
from a C# WindowsForms application. Can someone indicate how I can capture
the file from the server to eliminate the step of opening IE and having to
click Open on the download dialog.
i.e. I want to give the user a seamless one-click route to viewing, and then
printing, the PDF.
I assume it can be done using the HttpRequest class but I'd appreciate a
leg-up...
brian smithhttp://servername/reportserver?/Sales/YearlySalesSummary&rs:Format=PDF&rs:Command=RenderSearch
for URL Access in Books on line... The Format parameter is documented
there..Have fun!
--
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Brian Smith" <bsmith@.nospam.leazesdotcom> wrote in message
news:OvA18QOZEHA.2260@.TK2MSFTNGP12.phx.gbl...
> I have a report that is being rendered to PDF using the UrlAccess method
> from a C# WindowsForms application. Can someone indicate how I can capture
> the file from the server to eliminate the step of opening IE and having to
> click Open on the download dialog.
> i.e. I want to give the user a seamless one-click route to viewing, and
then
> printing, the PDF.
> I assume it can be done using the HttpRequest class but I'd appreciate a
> leg-up...
> brian smith
>|||Err, that's exactly what I'm doing (is that a typo - I'm using
Command=Render - don't think there is a RenderSearch command).
My question concerns capturing the rendered byte stream - but I've found the
answer in the FindRenderSave sample application.
brian
"Wayne Snyder" <wayne.nospam.snyder@.mariner-usa.com> wrote in message
news:u5CWb$OZEHA.3128@.TK2MSFTNGP09.phx.gbl...
>
http://servername/reportserver?/Sales/YearlySalesSummary&rs:Format=PDF&rs:Command=RenderSearch
> for URL Access in Books on line... The Format parameter is documented
> there..Have fun!
> --
> Wayne Snyder, MCDBA, SQL Server MVP
> Mariner, Charlotte, NC
> www.mariner-usa.com
> (Please respond only to the newsgroups.)
> I support the Professional Association of SQL Server (PASS) and it's
> community of SQL Server professionals.
> www.sqlpass.org
> "Brian Smith" <bsmith@.nospam.leazesdotcom> wrote in message
> news:OvA18QOZEHA.2260@.TK2MSFTNGP12.phx.gbl...
> > I have a report that is being rendered to PDF using the UrlAccess method
> > from a C# WindowsForms application. Can someone indicate how I can
capture
> > the file from the server to eliminate the step of opening IE and having
to
> > click Open on the download dialog.
> > i.e. I want to give the user a seamless one-click route to viewing, and
> then
> > printing, the PDF.
> >
> > I assume it can be done using the HttpRequest class but I'd appreciate a
> > leg-up...
> >
> > brian smith
> >
> >
>

No comments:

Post a Comment