cant access crystal report in asp.net
-
i added a crystal report to my asp.net.. but when i try create an object i cant access it i want to say: CrystalReport objRpt = new CrystalReport (); But i cant do this.. ended up using this code: ReportDocument rpt = new ReportDocument(); string reportPath = Server.MapPath("CrystalReport .rpt"); rpt.Load(reportPath); rpt.SetDataSource(ds); CrystalReportViewer.ReportSource = rpt; CrystalReportViewer.DataBind(); CrystalReportViewer.Visible = true; CrystalReportViewer.HasExportButton=true; Thanks
-
i added a crystal report to my asp.net.. but when i try create an object i cant access it i want to say: CrystalReport objRpt = new CrystalReport (); But i cant do this.. ended up using this code: ReportDocument rpt = new ReportDocument(); string reportPath = Server.MapPath("CrystalReport .rpt"); rpt.Load(reportPath); rpt.SetDataSource(ds); CrystalReportViewer.ReportSource = rpt; CrystalReportViewer.DataBind(); CrystalReportViewer.Visible = true; CrystalReportViewer.HasExportButton=true; Thanks
-
And your question is?
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.
Your guess is as good as anyone's about any question in that OP...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
-
Your guess is as good as anyone's about any question in that OP...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
-
In his/her post I didn't get idea what is the question.
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.
-
My question is seeing as ive tried every possible solution to display report in asp.net and its not working. can someone please help me out by providing me with a solution..
-
Do you get any error message? Does component CrystalReportViewer1 is empty when you provide datasoruce?
I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.
-
My question is seeing as ive tried every possible solution to display report in asp.net and its not working. can someone please help me out by providing me with a solution..
Just dumping code up there without any real description of any error message isn't too helpful.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham