Crystal ReportsGeneral discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Crystal Reports section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
I am using cr.net 2003. I have an xml doc that I am loading into a dataset and then pushing that dataset into my report. When I get to the reportsource line I get the following error:
Exception from HRESULT: 0x80131524.
I have searched online and found a hot fix from business objects but it did not correct the problem. I do know that my xml doc contains data and that my data set contains 11 tables each with 1 row. I wrote the dataset schema to file and used that build my crystal report so they would match. However I still get the same error. My code is below any help would be appreciated.
Dim sr As System.IO.StringReader = New System.IO.StringReader(_xmlPrintDoc.OuterXml)
Dim objDs As New DataSet
objDs.ReadXml(sr)
objDs.WriteXmlSchema(Server.MapPath("PMCont.xsd"))
Dim t As Integer
For t = 0 To (objDs.Tables.Count - 1)
cbsMain.Database.Tables(t).SetDataSource(objDs.Tab les(t))
Next
cvwMain.ReportSource = cbsMain
cvwMain.Visible = True