Ask a Question related to ASP.NET General, Design and Development.
-
crjunk #1
Pass Session Variable Value to Crystal Report?
I've got an aspx page that allows the user to select different options
whenever they want to run a report. On this page, I have added an
additional text box for the user to enter in comments about the report
they are running.
I would like to be able to have the comments that the user has entered
to appear on the report that is generated. I thought that I might be
able to pass this text to the report by using a session variable but I
have had no luck. It doesn't matter if I use a session variable to
accomplish this.
Can someone tell me how I can the user's comments from the web form
appear on the report?
Thanks!
crjunk Guest
-
How to display Crystal Report
Hi all, I dont know how to display a parameterized Crystal report in Asp.Net page... e.g. I give input of Student Code range and then click on View... -
Pls Hlp : crystal report
Hi, Am getting the following error: cpeaut32 error '800a753c' Invalid enum value. & the code is as follows : set MyParam = ... -
ASP + Crystal Report 9
I am beginner on Crystal Report. I want to ask a basic question. How can i display a report in ASP? I search for many web and try the sample... -
how to pass a password to crystal report 9.0 from vb6.0??!
Is there any way passing a password to crystal report 9.0 from Visual Basic 6.0. so that when loading the report in vb6.0., it can connect to the... -
IS it better to use session variables or pass a URL variable
Yes, I am sure the answer starts with - It depends... Well, I am trying to get a person's name from one page to the next. The name will obviously... -
crjunk #2
Re: Pass Session Variable Value to Crystal Report?
I figured out a way to accomplish this. I created a session variable
named UComments and stored the text that the user typed in it. On my
Crystal Report I created a blank formula field named UserComments I
next added the following code to my web form:
Dim oRpt As CrystalDecisions.CrystalReports.Engine.ReportDocum ent
= New CrystalDecisions.CrystalReports.Engine.ReportDocum ent()
'*** TELLING THE PROGRAM WHER THE REPORT IS LOCATED
'*** AND WHAT THE REPORT'S NAME IS. ***
oRpt.Load(Session("ReportLocation") & "Grant.rpt")
'*** CODE TO WRITE USER'S COMMENTS TO THE REPORT. ***
oRpt.DataDefinition.FormulaFields.Item("UserCommen ts").Text = "'"
+ Trim(Session("UComments")) + "'"
CrystalReportViewer1.ReportSource = oRpt
[email]crjunk@earthlink.net[/email] (crjunk) wrote in message news:<e45e90aa.0308061021.788041e6@posting.google. com>...> I've got an aspx page that allows the user to select different options
> whenever they want to run a report. On this page, I have added an
> additional text box for the user to enter in comments about the report
> they are running.
>
> I would like to be able to have the comments that the user has entered
> to appear on the report that is generated. I thought that I might be
> able to pass this text to the report by using a session variable but I
> have had no luck. It doesn't matter if I use a session variable to
> accomplish this.
>
> Can someone tell me how I can the user's comments from the web form
> appear on the report?
>
> Thanks!crjunk Guest



Reply With Quote

