Pass a Session Variable to a Crystal Report From an Existing Website

Posted on 2006-04-08
Last Modified: 2007-12-19
I am having problems passing a vairable to CR .net -

I have a .NET Crystal Application and I have a Session variable that is in my normal Website - I now created a CR reporting solution and I have put Session("MyVar") into the report.aspx.vb code - I can set a session variable in another page inside the project, but when I try to reference a variable from another page in my website - it doesn't work -

I think it has to do with how .net creates another web when you create the Crystal solution - I have tried to add my web to the solution and it still seems to clear all of the sessions when you run a report -

I have read a few other posts and they reference a report.document parameter - but I am unsure how to implement this - so my questions is -

Are the sessions clearing because .NET program creates a new web when I create a CR solution or does the CR solution clear all of the sessions when it runs and there is a special way to call sessions into the CR report that I don't know about -

Question by:kova4

    Accepted Solution

    Figured it out - fires the aspx compiler on the server which starts a whole new session - you can only pass variables thru the command line - then you set them as session variables and redirect to your reports page aspx -

    Author Comment

    I should be able to give myself points !!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
    Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
    This video discusses moving either the default database or any database to a new volume.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now