Click here to Skip to main content
15,905,420 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Not getting javascript alert msg if i use update panel Pin
Member 387988118-Aug-08 21:46
Member 387988118-Aug-08 21:46 
GeneralRe: Not getting javascript alert msg if i use update panel Pin
Abhijit Jana18-Aug-08 22:17
professionalAbhijit Jana18-Aug-08 22:17 
Questionhow to show the iframe this type of text Pin
lakshmichawala18-Aug-08 19:48
lakshmichawala18-Aug-08 19:48 
AnswerRe: how to show the iframe this type of text Pin
Christian Graus18-Aug-08 20:02
protectorChristian Graus18-Aug-08 20:02 
QuestionNeed Help on Different Topic Pin
Abhijit Jana18-Aug-08 20:37
professionalAbhijit Jana18-Aug-08 20:37 
AnswerRe: how to show the iframe this type of text Pin
AhsanS18-Aug-08 20:11
AhsanS18-Aug-08 20:11 
QuestionHow to use Where clasuse while working with Excel Pin
nikhil123418-Aug-08 19:41
nikhil123418-Aug-08 19:41 
QuestionProblem in ReportViewer using remote mode Pin
Guvera18-Aug-08 19:39
Guvera18-Aug-08 19:39 
Hi friends,

I am using reports in my application. In reportviewer i am using local report in my code.Its working well. But for print icon display is needed in my application.So i am using server report. But errors occurred in the code.

The Error is " datasource is not a member of Microsoft.Reporting.WebForms.ServerReport". What can i do? I can't run the application using serverreport.
For ur's reference i put the code using local report

Page.Title = "Reports Based On Company"
dsGetValue = New DataSet
objReport = New clsReport
ReportViewer1.ProcessingMode = ProcessingMode.Local
ReportViewer1.LocalReport.DataSources.Clear()
Dim report As LocalReport = ReportViewer1.LocalReport
dsGetValue = New DataSet

If paramCompanyName = "All" Then
'Temp DataTable to Concatenate the Address fields
dtTempTimeSheet = New DataTable
'Temp DataSet to Concatenate the Address fields
dsgetTempSheet = New DataSet
dtTempTimeSheet.Clear()
dsgetTempSheet.DataSetName = "PmsDataSet"
' Add the new table
dtTempTimeSheet = dsgetTempSheet.Tables.Add("DataTable3")
' Define the columns
With dtTempTimeSheet
.Columns.Add("strCompanyName", System.Type.GetType("System.String"))
.Columns.Add("strRelationshipType", System.Type.GetType("System.String"))
.Columns.Add("strAddress1", System.Type.GetType("System.String"))
.Columns.Add("strContactNo", System.Type.GetType("System.String"))
.Columns.Add("strWebsite", System.Type.GetType("System.String"))
End With

dsGetValue = objReport.getDetailedReportForCompany(paramstrRelationshipType, paramCompanyName)

For intloop = 0 To dsGetValue.Tables(0).Rows.Count - 1
dbrow = dtTempTimeSheet.NewRow
With dbrow
.Item("strCompanyName") = dsGetValue.Tables(0).Rows(intloop)(0)
.Item("strRelationshipType") = dsGetValue.Tables(0).Rows(intloop)(9)
.Item("strAddress1") = dsGetValue.Tables(0).Rows(intloop)(4) + "," + dsGetValue.Tables(0).Rows(intloop)(10)
.Item("strContactNo") = dsGetValue.Tables(0).Rows(intloop)(6)
.Item("strWebsite") = dsGetValue.Tables(0).Rows(intloop)(2)
'Add New Row
dtTempTimeSheet.Rows.Add(dbrow)
End With
Next

End If


'This Case Works If The Selected Company Name Is All
If paramCompanyName = "All" Then

Select Case dsgetTempSheet.Tables(0).Rows.Count
Case Is > CInt(0)
report.ReportPath = "ReportsNewUI/CompRelType.rdlc"
Case Else
report.ReportPath = "ReportsNewUI/ReportWithError.rdlc"
End Select
Try
Dim strDatasource As New ReportDataSource()
strDatasource.Name = "PmsDataSet_DataTable3"
strDatasource.Value = dsgetTempSheet.Tables("DataTable3")
report.DataSources.Add(strDatasource)
Catch ex As Exception

End Try

'This Case Works If The Selected Company Name Is All
ElseIf paramCompanyName <> "All" And paramstrRelationshipType = "All" Then
dsGetValue = objReport.getDetailedReportForCompany(paramstrRelationshipType, paramCompanyName)
Select Case dsGetValue.Tables(0).Rows.Count
Case Is > CInt(0)
'report.ReportPath = "ReportsNewUI/detailedReportForCompanyDetails.rdlc"
report.ReportPath = "ReportsNewUI/ReportWithCompanyInformation.rdlc"
Case Else
report.ReportPath = "ReportsNewUI/ReportWithError.rdlc"
End Select
Try
Dim strDatasource As New ReportDataSource()
strDatasource.Name = "PmsDataSet_DataTable3"
strDatasource.Value = dsGetValue.Tables("DataTable3")
report.DataSources.Add(strDatasource)
Catch ex As Exception

End Try
ElseIf paramCompanyName <> "All" And paramstrRelationshipType <> "All" Then
dsGetValue = objReport.getDetailedReportForCompany(paramstrRelationshipType, paramCompanyName)
Select Case dsGetValue.Tables(0).Rows.Count
Case Is > CInt(0)
'report.ReportPath = "ReportsNewUI/detailedReportForCompanyDetails.rdlc"
report.ReportPath = "ReportsNewUI/ReportWithCompanyInformation.rdlc"
Case Else
report.ReportPath = "ReportsNewUI/ReportWithError.rdlc"
End Select
Try
Dim strDatasource As New ReportDataSource()
strDatasource.Name = "PmsDataSet_DataTable3"
strDatasource.Value = dsGetValue.Tables("DataTable3")
report.DataSources.Add(strDatasource)
'Send Paramteres To Report File
'Dim StatusParameter As New ReportParameter()
'StatusParameter.Name = "strCompanyName"
'StatusParameter.Values.Add("Company Name" & " " & paramCompanyName)
'Dim parameter() As ReportParameter = {StatusParameter}
'report.SetParameters(parameter)

Catch ex As Exception

End Try
End If

Finally
dsGetValue = Nothing
objReport = Nothing

I hope ur's reply soon.

Thanks
Smile | :) Roll eyes | :rolleyes:

Every Successful Person Have A Painful Story

Questioncopy gridview structure to other gridview Pin
Mhiny18-Aug-08 18:59
Mhiny18-Aug-08 18:59 
AnswerRe: copy gridview structure to other gridview Pin
AhsanS18-Aug-08 19:12
AhsanS18-Aug-08 19:12 
AnswerRe: copy gridview structure to other gridview Pin
Abhijit Jana18-Aug-08 19:18
professionalAbhijit Jana18-Aug-08 19:18 
GeneralRe: copy gridview structure to other gridview Pin
Mhiny18-Aug-08 19:20
Mhiny18-Aug-08 19:20 
GeneralRe: copy gridview structure to other gridview [modified] Pin
AhsanS18-Aug-08 19:26
AhsanS18-Aug-08 19:26 
GeneralRe: copy gridview structure to other gridview Pin
Abhijit Jana18-Aug-08 19:58
professionalAbhijit Jana18-Aug-08 19:58 
GeneralRe: copy gridview structure to other gridview Pin
Member 841072021-Jul-13 23:24
Member 841072021-Jul-13 23:24 
QuestionProblems faced in differend resolution. Pin
Rasma Raj18-Aug-08 17:20
Rasma Raj18-Aug-08 17:20 
AnswerRe: Problems faced in differend resolution. Pin
Christian Graus18-Aug-08 18:15
protectorChristian Graus18-Aug-08 18:15 
AnswerRe: Problems faced in differend resolution. Pin
UD(IA)18-Aug-08 21:21
UD(IA)18-Aug-08 21:21 
GeneralRe: Problems faced in differend resolution. Pin
Christian Graus18-Aug-08 21:55
protectorChristian Graus18-Aug-08 21:55 
GeneralRe: Problems faced in differend resolution. Pin
UD(IA)18-Aug-08 22:52
UD(IA)18-Aug-08 22:52 
GeneralRe: Problems faced in differend resolution. Pin
Anil Chauhan 250818-Nov-09 23:43
professionalAnil Chauhan 250818-Nov-09 23:43 
GeneralRe: Problems faced in differend resolution. Pin
Rasma Raj19-Aug-08 0:07
Rasma Raj19-Aug-08 0:07 
GeneralRe: Problems faced in differend resolution. Pin
Anil Chauhan 250818-Nov-09 23:46
professionalAnil Chauhan 250818-Nov-09 23:46 
QuestionAjaX TIMER will not start in ascx Pin
Cannery18-Aug-08 13:05
Cannery18-Aug-08 13:05 
QuestionAJAX Accordion control Pin
Cannery18-Aug-08 7:15
Cannery18-Aug-08 7:15 

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.