Click here to Skip to main content
15,888,984 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to Update the CheckBoxlist? Pin
Johndas23-Feb-09 19:52
Johndas23-Feb-09 19:52 
QuestionException Handling Mechanism Pin
Mogaambo23-Feb-09 19:14
Mogaambo23-Feb-09 19:14 
AnswerRe: Exception Handling Mechanism Pin
Expert Coming23-Feb-09 22:16
Expert Coming23-Feb-09 22:16 
QuestionVisual Studio is not working properly in Vista Pin
rahuladya23-Feb-09 18:26
rahuladya23-Feb-09 18:26 
AnswerRe: Visual Studio is not working properly in Vista Pin
Expert Coming23-Feb-09 18:51
Expert Coming23-Feb-09 18:51 
AnswerRe: Visual Studio is not working properly in Vista Pin
Kariem Soudy23-Feb-09 20:47
Kariem Soudy23-Feb-09 20:47 
GeneralRe: Visual Studio is not working properly in Vista Pin
rahuladya24-Feb-09 16:54
rahuladya24-Feb-09 16:54 
QuestionReport has no tables Pin
Girish48123-Feb-09 18:12
Girish48123-Feb-09 18:12 
Hello,
I am getting above error message. Here is my code which i am using:
...
...

tablename = clsname & exmname & Trim(DropDownList1.Text)
sql = "select * from " & tablename & " where rollno between " & TextBox1.Text & " and " & TextBox2.Text
Dim myr As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim ocn As New System.Data.OracleClient.OracleConnection
Dim ods As New System.Data.DataSet
Dim oda As New System.Data.OracleClient.OracleDataAdapter(sql, ocn)
ocn.ConnectionString = "Data Source=orcl;User ID=scott;Password=tiger;Unicode=True"
oda.Fill(ods, tablename)
myr.Load("C:\Inetpub\wwwroot\Exam2\CrystalReport.rpt")

myr.SetDataSource(ods.Tables(0)) ' This is error line.

myr.DataDefinition.FormulaFields("rollno").Text = ods.Tables(0).Rows.Item(0).Item("rollno")
myr.DataDefinition.FormulaFields("dob").Text = ods.Tables(0).Rows.Item(0).Item("dob")
myr.DataDefinition.FormulaFields("name").Text = ods.Tables(0).Rows.Item(0).Item("name")
myr.DataDefinition.FormulaFields("schcode").Text = ods.Tables(0).Rows.Item(0).Item("schcode")
myr.DataDefinition.FormulaFields("centcode").Text = ods.Tables(0).Rows.Item(0).Item("centcode")
CrystalReportViewer1.ReportSource = myr
CrystalReportViewer1.DataBind()

Since i can not give the table name in design time (it will be dynamic); so
I have create a crystal report in which i have created formula fields in the report which will be populated as above code.

Please guide and help me.
Regards
Girish Sharma
QuestionPrevent user to do multiple logins with same credentials Pin
rushi_gavankar23-Feb-09 18:09
rushi_gavankar23-Feb-09 18:09 
AnswerRe: Prevent user to do multiple logins with same credentials Pin
Expert Coming23-Feb-09 18:50
Expert Coming23-Feb-09 18:50 
GeneralRe: Prevent user to do multiple logins with same credentials Pin
rushi_gavankar24-Feb-09 1:58
rushi_gavankar24-Feb-09 1:58 
QuestionPage_Load firing 2 times Pin
pinna_hari23-Feb-09 17:21
pinna_hari23-Feb-09 17:21 
AnswerRe: Page_Load firing 2 times Pin
Expert Coming23-Feb-09 18:49
Expert Coming23-Feb-09 18:49 
GeneralRe: Page_Load firing 2 times Pin
pinna_hari23-Feb-09 19:28
pinna_hari23-Feb-09 19:28 
GeneralRe: Page_Load firing 2 times Pin
Expert Coming23-Feb-09 22:11
Expert Coming23-Feb-09 22:11 
QuestionFont Styles is appearing differently in two text boxes Pin
meeram39523-Feb-09 16:57
meeram39523-Feb-09 16:57 
AnswerRe: Font Styles is appearing differently in two text boxes Pin
Sneha Bisht23-Feb-09 20:42
Sneha Bisht23-Feb-09 20:42 
QuestionEnable Textbox on Gridview Pin
Terick23-Feb-09 12:36
Terick23-Feb-09 12:36 
AnswerRe: Enable Textbox on Gridview Pin
Christian Graus23-Feb-09 14:25
protectorChristian Graus23-Feb-09 14:25 
AnswerRe: Enable Textbox on Gridview Pin
Xmen Real 23-Feb-09 14:37
professional Xmen Real 23-Feb-09 14:37 
QuestionShow only 'A' items in gridview Pin
Terick23-Feb-09 8:47
Terick23-Feb-09 8:47 
AnswerRe: Show only 'A' items in gridview Pin
Christian Graus23-Feb-09 8:58
protectorChristian Graus23-Feb-09 8:58 
GeneralRe: Show only 'A' items in gridview Pin
Terick23-Feb-09 9:52
Terick23-Feb-09 9:52 
GeneralRe: Show only 'A' items in gridview Pin
Christian Graus23-Feb-09 9:57
protectorChristian Graus23-Feb-09 9:57 
GeneralRe: Show only 'A' items in gridview Pin
Terick23-Feb-09 10:06
Terick23-Feb-09 10:06 

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.