Click here to Skip to main content
15,892,059 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: GRIDVIEW HELP Pin
excaliber7-Aug-08 3:32
excaliber7-Aug-08 3:32 
GeneralRe: GRIDVIEW HELP Pin
excaliber7-Aug-08 4:02
excaliber7-Aug-08 4:02 
GeneralRe: GRIDVIEW HELP Pin
AlexeiXX37-Aug-08 6:25
AlexeiXX37-Aug-08 6:25 
QuestionMoss Ajax WebService Pin
Member 36653156-Aug-08 11:10
Member 36653156-Aug-08 11:10 
QuestionHost Website Pin
niravpatel016-Aug-08 8:52
niravpatel016-Aug-08 8:52 
AnswerRe: Host Website Pin
Abhijit Jana6-Aug-08 17:41
professionalAbhijit Jana6-Aug-08 17:41 
AnswerRe: Host Website Pin
nibinki3336-Aug-08 22:44
nibinki3336-Aug-08 22:44 
QuestionMissing parameter values. Crystal Report in ASP.NET 2008 Pin
judoh6-Aug-08 8:16
judoh6-Aug-08 8:16 
Hi, Pls am new in crystal report in ASP.NET 2008 (usign VB codes). I created a CR using dataset (DataTable). Tested it with an SQL statement and it displays data. When I remove the direct where clause conditions to use parameter (because i will display the parameter as header information), it is giving me "Missing parameter values." Can someone help me. The code is below:



Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim ConnectionString As String = ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString
Dim conn As New OracleConnection(ConnectionString)
Dim MyDA As New OracleClient.OracleDataAdapter
Dim vacancyid As Integer = Request.QueryString("vacancyid")
Dim sql As String = ""
Dim cmd As New OracleCommand(sql, conn)
sql = "select a.VACANCY_ID,a.VAC_TITLE,a.PUBLISH_SDT,a.PUBLISH_EDT,a.MAX_SAL,b.OFFER_DT,b.SALARY "
sql = sql & " from vacancy a,offer_tbl b where a.COMPANY_ID=b.COMPANY_ID and a.VACANCY_ID=b.VACANCY_ID "
sql = sql & " and a.VACANCY_ID='" & vacancyid & "' and a.VAC_STATUS='F' order by VACANCY_ID"
cmd.CommandText = sql
cmd.CommandType = CommandType.Text
MyDA.SelectCommand = cmd
Dim myDS As New Vacancy_Test
MyDA.Fill(myDS, "DataTable1")

'====== Running the report directly with this statement works
' ''sql = "select a.VACANCY_ID,a.VAC_TITLE,a.PUBLISH_SDT,a.PUBLISH_EDT,a.MAX_SAL,b.OFFER_DT,b.SALARY "
' ''sql = sql & " from vacancy a,offer_tbl b where a.COMPANY_ID=b.COMPANY_ID and a.VACANCY_ID=b.VACANCY_ID "
' ''sql = sql & " and a.COMPANY_ID='1' and a.VACANCY_ID=1 and a.VAC_STATUS='F' "
' ''sql = sql & " order by VACANCY_ID"
'===================

Dim oRpt As New ReportDocument()
'Dim rpt As New ReportDocument
Dim reportPath As String = Server.MapPath("Vacancy-Test.rpt")
oRpt.Load(reportPath, OpenReportMethod.OpenReportByDefault)
Dim ParamFields As ParameterFields = Me.CrystalReportViewer1.ParameterFieldInfo
Dim p_vacancyid As New ParameterField
p_vacancyid.Name = "rpt_VacancyID" ' THE PARAMETER IN THE REPORT
Dim p_vacancyid_value As New ParameterDiscreteValue()
p_vacancyid_value.Value = Convert.ToInt32(vacancyid)
p_vacancyid.CurrentValues.Add(p_vacancyid_value)
ParamFields.Add(p_vacancyid)
'oRpt.DataDefinition.ParameterFields()

oRpt.SetDataSource(myDS)
CrystalReportViewer1.ReportSource = oRpt


End Sub

none

AnswerRe: Missing parameter values. Crystal Report in ASP.NET 2008 Pin
janakinandhu6-Aug-08 23:14
janakinandhu6-Aug-08 23:14 
GeneralRe: Missing parameter values. Crystal Report in ASP.NET 2008 Pin
judoh7-Aug-08 7:28
judoh7-Aug-08 7:28 
GeneralRe: Missing parameter values. Crystal Report in ASP.NET 2008 Pin
janakinandhu7-Aug-08 18:54
janakinandhu7-Aug-08 18:54 
QuestionWebservice on multiple servers Pin
balu123456-Aug-08 7:23
balu123456-Aug-08 7:23 
QuestionAttempted to access an unloaded AppDomain Error Pin
Tomb4216-Aug-08 5:18
Tomb4216-Aug-08 5:18 
AnswerRe: Attempted to access an unloaded AppDomain Error Pin
Tomb42115-Aug-08 4:20
Tomb42115-Aug-08 4:20 
Questionerror with image button Pin
eyeseetee6-Aug-08 4:14
eyeseetee6-Aug-08 4:14 
AnswerRe: error with image button Pin
Bardy856-Aug-08 4:23
Bardy856-Aug-08 4:23 
AnswerRe: error with image button Pin
eyeseetee6-Aug-08 4:36
eyeseetee6-Aug-08 4:36 
GeneralRe: error with image button Pin
Bardy856-Aug-08 4:42
Bardy856-Aug-08 4:42 
GeneralRe: error with image button Pin
eyeseetee6-Aug-08 5:12
eyeseetee6-Aug-08 5:12 
QuestionMac, Safari problem with open files on webserver Pin
jooljool6-Aug-08 3:53
jooljool6-Aug-08 3:53 
Questionwebdav [modified] Pin
saritha19836-Aug-08 3:18
saritha19836-Aug-08 3:18 
AnswerRe: webdav Pin
eyeseetee6-Aug-08 3:26
eyeseetee6-Aug-08 3:26 
QuestionCustomValidator and Gridview problem Pin
kensai6-Aug-08 2:53
kensai6-Aug-08 2:53 
AnswerRe: CustomValidator and Gridview problem Pin
Bardy856-Aug-08 3:01
Bardy856-Aug-08 3:01 
GeneralRe: CustomValidator and Gridview problem Pin
kensai6-Aug-08 3:22
kensai6-Aug-08 3:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.