Showing posts with label html. Show all posts
Showing posts with label html. Show all posts

Tuesday, March 20, 2012

rs:SessionID= does not work

I want to render a PDF report and view the copy of the report in the HTML
viewer. What I did is to use rs.Render(...) to get the PDF report and the
SessionID, and then pass the SessionID to the URL string and run the URL.
But the rs:SessionID=xxxxx command does not work, it alway create a new
session for the report.
This part of the code works fine to generate a PDF file for me and save a
session id in m_SessionID:
byte[] results = null;
string historyID = null;
string devInfo = @."<DeviceInfo><Toolbar>False</Toolbar></DeviceInfo>";
SessionHeader sh = new SessionHeader();
rs.SessionHeaderValue = sh;
results = rs.Render(
this.ReportConfig.ReportName,
"PDF",
historyID,
devInfo,
parameters,
credentials,
showHideToggle, out encoding, out mimeType, out
reportHistoryParameters,
out warnings,
out streamIDs);
m_SessionID = rs.SessionHeaderValue.SessionId;
But when I use the generated sesionid for the URL access like this:
url = "http://guoxp.softbrandsamer.com/reportserver?%2fInvItmb&rs:Command=Render&r
s:SessionID=" + m_SessionID
it will create a new instance. And when I looked at the SessionData table in
the ReportServerTempDB, a new session is created.
How to make it work? Please help. Thanks,
LianghongDid you ever find a work around for this. It doesn't seem to be working for
me either.
"Guo, Lianghong" wrote:
> I want to render a PDF report and view the copy of the report in the HTML
> viewer. What I did is to use rs.Render(...) to get the PDF report and the
> SessionID, and then pass the SessionID to the URL string and run the URL.
> But the rs:SessionID=xxxxx command does not work, it alway create a new
> session for the report.
> This part of the code works fine to generate a PDF file for me and save a
> session id in m_SessionID:
> byte[] results = null;
> string historyID = null;
> string devInfo = @."<DeviceInfo><Toolbar>False</Toolbar></DeviceInfo>";
> SessionHeader sh = new SessionHeader();
> rs.SessionHeaderValue = sh;
> results = rs.Render(
> this.ReportConfig.ReportName,
> "PDF",
> historyID,
> devInfo,
> parameters,
> credentials,
> showHideToggle, out encoding, out mimeType, out
> reportHistoryParameters,
> out warnings,
> out streamIDs);
> m_SessionID = rs.SessionHeaderValue.SessionId;
> But when I use the generated sesionid for the URL access like this:
> url => "http://guoxp.softbrandsamer.com/reportserver?%2fInvItmb&rs:Command=Render&r
> s:SessionID=" + m_SessionID
> it will create a new instance. And when I looked at the SessionData table in
> the ReportServerTempDB, a new session is created.
> How to make it work? Please help. Thanks,
> Lianghong
>
>|||Hi
I've the same problem with the session an rs:SessionId, anyone knwo a
solution'
Thanks
"debra doty" wrote:
> Did you ever find a work around for this. It doesn't seem to be working for
> me either.
> "Guo, Lianghong" wrote:
> > I want to render a PDF report and view the copy of the report in the HTML
> > viewer. What I did is to use rs.Render(...) to get the PDF report and the
> > SessionID, and then pass the SessionID to the URL string and run the URL.
> > But the rs:SessionID=xxxxx command does not work, it alway create a new
> > session for the report.
> >
> > This part of the code works fine to generate a PDF file for me and save a
> > session id in m_SessionID:
> >
> > byte[] results = null;
> > string historyID = null;
> > string devInfo = @."<DeviceInfo><Toolbar>False</Toolbar></DeviceInfo>";
> >
> > SessionHeader sh = new SessionHeader();
> > rs.SessionHeaderValue = sh;
> > results = rs.Render(
> > this.ReportConfig.ReportName,
> > "PDF",
> > historyID,
> > devInfo,
> > parameters,
> > credentials,
> > showHideToggle, out encoding, out mimeType, out
> > reportHistoryParameters,
> > out warnings,
> > out streamIDs);
> > m_SessionID = rs.SessionHeaderValue.SessionId;
> >
> > But when I use the generated sesionid for the URL access like this:
> > url => > "http://guoxp.softbrandsamer.com/reportserver?%2fInvItmb&rs:Command=Render&r
> > s:SessionID=" + m_SessionID
> >
> > it will create a new instance. And when I looked at the SessionData table in
> > the ReportServerTempDB, a new session is created.
> >
> > How to make it work? Please help. Thanks,
> >
> > Lianghong
> >
> >
> >

Wednesday, March 7, 2012

RS improvements : full justification, html tags

Presently, it seems that it is impossible to set the text-align property of a
textbox to "full justification" (which means the text will be aligned along
the left and right margins).
Will full justification be supported in next RS version ?
In next version, will textboxes support html tags, so that it could be
possible to write some bold, some italic, some colored etc. text in the same
textbox ?What version are you on? If by next version you mean RS 2005 then the answer
is no to both of them. If you are wondering about the version after RS 2005
then I would have to say I don't have a clue and this early in the cycle MS
won't be saying either. On the newsgroup I have not seen many ask for full
justification but I have seen many ask for rich text (which really is the
proper way to specify what you are asking). It is easy to forget but RS is a
output independent reporting system. HTML is just one of the outputs that
get rendered. So rich text of course would come out in HTML as html tags, in
PDF, Excel, etc it would be rendered using whatever is native for those
outputs.
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"MacFly" <MacFly@.discussions.microsoft.com> wrote in message
news:9319EF02-8AF9-4978-9868-5A136EE38E1E@.microsoft.com...
> Presently, it seems that it is impossible to set the text-align property
> of a
> textbox to "full justification" (which means the text will be aligned
> along
> the left and right margins).
> Will full justification be supported in next RS version ?
> In next version, will textboxes support html tags, so that it could be
> possible to write some bold, some italic, some colored etc. text in the
> same
> textbox ?|||OK thanks for reply
"Bruce L-C [MVP]" wrote:
> What version are you on? If by next version you mean RS 2005 then the answer
> is no to both of them. If you are wondering about the version after RS 2005
> then I would have to say I don't have a clue and this early in the cycle MS
> won't be saying either. On the newsgroup I have not seen many ask for full
> justification but I have seen many ask for rich text (which really is the
> proper way to specify what you are asking). It is easy to forget but RS is a
> output independent reporting system. HTML is just one of the outputs that
> get rendered. So rich text of course would come out in HTML as html tags, in
> PDF, Excel, etc it would be rendered using whatever is native for those
> outputs.
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "MacFly" <MacFly@.discussions.microsoft.com> wrote in message
> news:9319EF02-8AF9-4978-9868-5A136EE38E1E@.microsoft.com...
> > Presently, it seems that it is impossible to set the text-align property
> > of a
> > textbox to "full justification" (which means the text will be aligned
> > along
> > the left and right margins).
> > Will full justification be supported in next RS version ?
> >
> > In next version, will textboxes support html tags, so that it could be
> > possible to write some bold, some italic, some colored etc. text in the
> > same
> > textbox ?
>
>