Hello Friends I am new to this fourm. but My problm is very common but I didnt find any such good solution for it.
Problm: I am working on a project in vb.net 2008 & Using Sql server 2005. all is well apart from the reporting problm. I am using crystal report 2008 for reproting in my project.
Well I am able to load my report in report viewer by Following the steps in crystal report wizard. and it works perfectly. but guys it dosnt work in real world i mean when you are going to install ur project in another system. there will be some
error in crytaal report like file path invalid. what i want to do is that........... I want to load my report in report viewer mannually means through codes. Which will work in every conditions n on every system. Like I have main problm is with my report file
my code goes like this...
sender As System.Object,
"Select *from Bill"
New SqlDataAdapter(sql, con)
AsString = Application.StartupPath +
CrystalReportViewer1.ReportSource = strpath
but there is always error for invalid report file path...
guys need urgent help as i have to compelete project very soon... or i have to go for other tools for reporting :|
Please tell me the whole working proceedure for mannual craystal report loading in form :)
I'm still pretty new to crystal reports, but I'm pretty sure that the cr.load() call has to come before the cr.setdatasource() one. move it up and I believe it will work. Also the Fields on the CrystalReport1.rpt have to match the columns in
Wednesday, June 02, 2010 2:53 PM
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.