Showing posts with label webform. Show all posts
Showing posts with label webform. Show all posts

Monday, March 12, 2012

RDLC Object datasource can't get System.Web through webform reportviewer

I am running an RDLC with a object datasource. In the object I try to
access System.Web.Httphandler to get the session, but it is nothing.
The reportviewer running my rdlc from a webform, and it seems as though
there is a setting or something to enable the object datasource access
to the session but I cannot figure it out.
Can someone help?Currently I get this error when it tries to access
System.Web.Httphandler.Current
Microsoft.Reporting.WebForms.AspNetSessionExpiredException|||lotta typos today, I am accessing:
System.Web.HttpContext.Current.Session("PhysicalWebPath")
and Current is Nothing|||This is not too surprising. The web control uses web services. I am not sure
it has a physical web path. What are you trying to determine?
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Greg" <gfricke@.gmail.com> wrote in message
news:1132681439.261358.193190@.g43g2000cwa.googlegroups.com...
> lotta typos today, I am accessing:
> System.Web.HttpContext.Current.Session("PhysicalWebPath")
> and Current is Nothing
>|||Just trying to grab a session value, so if its a web service that the
web control uses, is there an EnableSession true setting I cause use in
my object datasource like I do in a standard webservice to share the
session?|||Sorry, can't help you there. I have been using the winform control.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Greg" <gfricke@.gmail.com> wrote in message
news:1132689249.764262.282850@.f14g2000cwb.googlegroups.com...
> Just trying to grab a session value, so if its a web service that the
> web control uses, is there an EnableSession true setting I cause use in
> my object datasource like I do in a standard webservice to share the
> session?
>|||On a side note, can I see these webservices? Like does it create a
asmx file or something I can connect to in IE for the object
datasources the reportviewer communicates with?|||The webservices are documented and you can use them yourself. Prior to 2005
people would (and still can) roll there own, not using the control. The
previous control (really a sample) used URL integration and so had some
difficulties.
In Books Online look for web services and you will see lots of
documentation.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Greg" <gfricke@.gmail.com> wrote in message
news:1132690648.480837.290540@.o13g2000cwo.googlegroups.com...
> On a side note, can I see these webservices? Like does it create a
> asmx file or something I can connect to in IE for the object
> datasources the reportviewer communicates with?
>

Monday, February 20, 2012

rc:linktarget does not work

I have a webform with 2 frames. The top frame contains the main report and clicking on one of the fields generates another report. I want this report to open in the bottom frame and not take over the whole window. I am using this in the 'jump to url' section of the text field:
="http:/ServerName/ReportServer?/My Reports/Test Report&rs:Command=Render&rs:Format=HTML4.0&rc:Toolbar=false&rc:LinkTarget=charts&rc:Parameters=False&StartMonth=1&EndMonth=8&reportYear=2004"
where 'charts' is the frame name.
It does not work. I am new to reporting services and have spent a lot of time trying to figure this out. Please help me. it's urget.
Thanks!!
--
Posted using Wimdows.net NntpNews Component -
Post Made from http://www.SqlJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.You need the rc:LinkTarget parameter in the URL of the initial report. It
still needs to be in the Jump to URL, or else subsequent clicks break out of
the frame.
Cheers,
'(' Jeff A. Stucker
\
Business Intelligence
www.criadvantage.com
---
"SqlJunkies User" <User@.-NOSPAM-SqlJunkies.com> wrote in message
news:%23EN34Xj0EHA.2824@.TK2MSFTNGP09.phx.gbl...
>I have a webform with 2 frames. The top frame contains the main report and
>clicking on one of the fields generates another report. I want this report
>to open in the bottom frame and not take over the whole window. I am using
>this in the 'jump to url' section of the text field:
> ="http:/ServerName/ReportServer?/My Reports/Test
> Report&rs:Command=Render&rs:Format=HTML4.0&rc:Toolbar=false&rc:LinkTarget=charts&rc:Parameters=False&StartMonth=1&EndMonth=8&reportYear=2004"
> where 'charts' is the frame name.
> It does not work. I am new to reporting services and have spent a lot of
> time trying to figure this out. Please help me. it's urget.
> Thanks!!
> --
> Posted using Wimdows.net NntpNews Component -
> Post Made from http://www.SqlJunkies.com/newsgroups Our newsgroup engine
> supports Post Alerts, Ratings, and Searching.