Ask a Question related to ASP.NET General, Design and Development.
-
Brendan Baker #1
Re: Parameter Passing to crystal report
Here is some code I use to pass 1 parameter to a Crystal Report:
Dim crColParameters As ParameterFieldDefinitions
Dim crColParameter As ParameterFieldDefinition
Dim crParameterValues As ParameterValues
Dim crParameterDiscreteValues As ParameterDiscreteValue = New
ParameterDiscreteValue()
Dim crConnectionInfo As New ConnectionInfo()
Dim crDatabase As Database
Dim crTables As Tables
Dim crTable As Table
Dim crTableLogOnInfo As New TableLogOnInfo()
'****** 1 Parameter set here to the Web SessionID
crColParameters = crReportDocument.DataDefinition.ParameterFields()
crColParameter = crColParameters.Item(0)
crParameterValues = crColParameter.CurrentValues()
crParameterDiscreteValues.Value =
HttpContext.Current.Session.SessionID.ToString
crParameterValues.Add(crParameterDiscreteValues)
crColParameter.ApplyCurrentValues(crParameterValue s)
'****** End Session Code
crConnectionInfo.ServerName = <Myserver>
crConnectionInfo.DatabaseName = <MyDB>
crConnectionInfo.UserID = <MyUID>
crConnectionInfo.Password = <MyPWD>
crDatabase = crReportDocument.Database
crTables = crDatabase.Tables
For Each crTable In crTables
crTableLogOnInfo = crTable.LogOnInfo
crTableLogOnInfo.ConnectionInfo = crConnectionInfo
crTable.ApplyLogOnInfo(crTableLogOnInfo)
Next
Brendan Baker 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 = ... -
Formatting a Crystal Report
Hi, I have a report that I render out as PDF. I have two sections in my Details section of the report. I want to format the background of... -
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... -
send a parameter to Crystal report in webform application
Hi, I am using ASP.NET with C# and Crystal Report. I have a textbox et a asp.net button. I send a number in the texte, I push the button and I...



Reply With Quote

