ReportViewer bug

Discussion in 'ASP .Net' started by Chris Botha, Feb 27, 2006.

  1. Chris Botha

    Chris Botha Guest

    I have a report that uses 2 datasets (2 tables on the report)
    VS2005 correctly generates 2 ObjectDataSource objs when selecting the report
    in the smart tag of the ReportViewer.

    Depending on values the user enter, example start/end date, the report must
    display only that data, so I have 2 classes that selects the data and return
    the relevant data sets (set up in the TypeName and SelectMethod properties
    of the ObjectDataSource objs). The framework calls these classes when the
    report is being generated.
    These user entered values are stored in session variables and the 2 classes
    get the values from the session variables.
    This works fine for the first class being called. When the second class is
    being called, trying to get the session object throws an error.

    I've been using this technique a number of times for reports with 1 dataset.
    My workaround for the time being is static variables rather than session
    variables to store the user entered values, which will of course blow up if
    2 users run the report simultaneously.
     
    Chris Botha, Feb 27, 2006
    #1
    1. Advertising

  2. Chris Botha

    Guest

    You might want to post this at
    microsoft.public.sqlserver.reportingsvcs, although admittedly the
    response level is not very high over there.

    Otherwise, can you provide any more info about the error?

    Jim
     
    , Feb 27, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. S. Justin Gengo

    Re: dropdown overlaps reportviewer in IE

    S. Justin Gengo, Jul 31, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    463
    S. Justin Gengo
    Jul 31, 2004
  2. =?Utf-8?B?Sm9obiBCYWlsZXk=?=

    Microsoft.ReportViewer.WebForms assembly

    =?Utf-8?B?Sm9obiBCYWlsZXk=?=, Jul 4, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    949
    =?Utf-8?B?Sm9obiBCYWlsZXk=?=
    Jul 4, 2005
  3. Chris Botha

    ReportViewer problem after deploy

    Chris Botha, Nov 16, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    6,087
    Chris Botha
    Nov 16, 2005
  4. Bogdan
    Replies:
    0
    Views:
    490
    Bogdan
    Oct 3, 2009
  5. andyclap

    ReportViewer control LocalReport PDF Bug

    andyclap, Jan 4, 2008, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    296
    andyclap
    Jan 9, 2008
Loading...

Share This Page