I know this topic has been discussed many times all over the web but in my
case although i can make it work in a normal window but it falls flat workin
g
in a window where i generate a PDF from a SQL server report.
The window which i am changing the title for contains the codebehind to
render a sql server report and the following code is where it overrides the
title changing code:
Response.ClearContent();
Response.AppendHeader("content-length", result.Length.ToString());
Response.AppendHeader("content-disposition", "inline: filename=test.pdf");
Response.ContentType = "application/PDF";
Response.BinaryWrite(result);
Response.Flush();
Response.Close();
To test, i commented this part and the title changes. But i cannot comment
this as this is the part which converts the xml rdl into pdf.
Any suggested will be greatly appreciated.
Thanks and regards
Googleif the window is not hosting html, but using another ole viewer (say
acrobat) the viewer controls the title.
-- bruce (sqlwork.com)
"google" <google@.discussions.microsoft.com> wrote in message
news:3A74A8B5-C1FE-4291-8520-E4E3278B1289@.microsoft.com...
> I know this topic has been discussed many times all over the web but in my
> case although i can make it work in a normal window but it falls flat
working
> in a window where i generate a PDF from a SQL server report.
> The window which i am changing the title for contains the codebehind to
> render a sql server report and the following code is where it overrides
the
> title changing code:
> Response.ClearContent();
> Response.AppendHeader("content-length", result.Length.ToString());
> Response.AppendHeader("content-disposition", "inline: filename=test.pdf");
> Response.ContentType = "application/PDF";
> Response.BinaryWrite(result);
> Response.Flush();
> Response.Close();
> To test, i commented this part and the title changes. But i cannot comment
> this as this is the part which converts the xml rdl into pdf.
> Any suggested will be greatly appreciated.
> Thanks and regards
> Google
thanks for the reply.
So this means there is abosutely no way around this?
"bruce barker" wrote:
> if the window is not hosting html, but using another ole viewer (say
> acrobat) the viewer controls the title.
> -- bruce (sqlwork.com)
>
> "google" <google@.discussions.microsoft.com> wrote in message
> news:3A74A8B5-C1FE-4291-8520-E4E3278B1289@.microsoft.com...
> working
> the
>
>
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment