Visual Studio Development Bookmark and Share   
 index > Crystal Reports for Visual Studio > crystel reports viewer will not load data after crystel reports are connected directly to the data base
 

crystel reports viewer will not load data after crystel reports are connected directly to the data base

I have tried several attempts to load data on my cryatel reports viewer. I am using visual basiv in visual studio.net 2008. My crstal reports are connected verbaum per all the tutorals I can find, but the problem I am having is that the crystel report viewer is jst showing the fied titles such as student or employee ID, but nor the data. I have set the data source propperly . I also downloaded this sample from the code project web site and I have the same problem. wat do I need to do next? it has been come a big stumbling block for me.
visual studio.net novice programmer
stevooooo  Sunday, October 11, 2009 3:52 AM
here is the sample code I ws refering to


http://www.codeproject.com/KB/cs/CreatingCrystalReports.aspx
visual studio.net novice programmer
stevooooo  Sunday, October 11, 2009 3:53 AM
Actuallt this all I GET FROM MY CRYSTEL REPORT VIEWER



PERSONAL DATA REPORT
Sunday, October 11, 2009
Contact No      Address       Birth Date      Last Name        First Name     StudentID



BUT NO DATA SHOWS UP 
visual studio.net novice programmer
stevooooo  Sunday, October 11, 2009 4:22 AM
Hi,

That's strange , it seems you have change the layout of the report, do you create it by yourself?

I just download the project and convert it , it works here.

please try to run it to see if it works for you :
http://cid-219dc49fbdfffbd1.skydrive.live.com/self.aspx/Public/CreatingCrystalReportsSoure.rar

Harry
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Harry Zhu  Tuesday, October 13, 2009 3:36 AM
Yes, I was able to download it on my other machine, because it has more data base drivers to acomidate this project that you and I  had downloaded .

Which brings me to my next question. It seems to me since I am a novice to crystal reports, my inital investigtion reveals  that you need the various database drivers to make a proper connection.

Therefore, this is why I am having so many problems. When I go to control panel then I go to aministrator tools, then to microsoft ODBC Administrator then select the users  DSN tab, the only database drivers that come up is the sql databse drivers. How do I download and install the other various drivers that I need?


Also when I make a database in visual studio 2008 the database extension file is MDF. How do I connect to that? I tried to do a direct connect from the projects folder and it gave me the results in my crystal report viewer as shown above in the example. I need good tutorals and good code examples to get me through the learning process of crystal reports. Please help. thanks




visual studio.net novice programmer
stevooooo  Wednesday, October 14, 2009 4:00 AM
Hi,

The supported data sources are listed in the page:
http://msdn.microsoft.com/en-us/library/ms225573.aspx

The sample in the areticle uses datasets as data source.

You might want to create connection to database:
http://msdn.microsoft.com/en-us/library/ms227478.aspx

Then pull data to report, please take a look at the article about how to do it:
http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/en/CrystalReports_dotNET_SDK/crsdk_net_doc/doc/crsdk_net_doc/html/crtsktutorialsrdparametersdiscrete.htm

Harry


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Harry Zhu  Wednesday, October 14, 2009 4:29 AM

You can use google to search for other answers

Custom Search

More Threads

• Formatting data in Crystal reports
• Access to report file denied.
• Where do I download the windows installer?
• crystal report - data and authentication
• Report is opened and displayed on development machine but not on the production server?
• data source for crystal report
• Image to PDF
• Report doesn't print when running on IIS
• Crytal Report is not Opening in Visual Studio 2003
• Customize page size in crystal reports