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. Advertisements

  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. Advertisements

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. =?Utf-8?B?Sm9obiBCYWlsZXk=?=

    Microsoft.ReportViewer.WebForms assembly

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

    ReportViewer problem after deploy

    Chris Botha, Nov 16, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    6,260
    Chris Botha
    Nov 16, 2005
  3. Jéjé
    Replies:
    1
    Views:
    3,961
    3cMaverick
    May 12, 2006
  4. Greg
    Replies:
    7
    Views:
    936
    Bruce L-C [MVP]
    Nov 22, 2005
  5. =?Utf-8?B?TmVvZHluYW1pYw==?=

    How to add barcode images into ASP.NET ReportViewer - RDLC reports

    =?Utf-8?B?TmVvZHluYW1pYw==?=, Nov 23, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    4,940
    Juan T. Llibre
    Nov 23, 2005
  6. =?Utf-8?B?QnJhZA==?=

    Reportviewer problem

    =?Utf-8?B?QnJhZA==?=, Dec 2, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    4,929
    =?Utf-8?B?QnJhZA==?=
    Feb 14, 2006
  7. Bogdan
    Replies:
    0
    Views:
    649
    Bogdan
    Oct 3, 2009
  8. andyclap

    ReportViewer control LocalReport PDF Bug

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