Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / June 2006

Tip: Looking for answers? Try searching our database.

a simple crystal reports app

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Victor Paraschiv - 24 Jun 2006 00:59 GMT
Hi,
I want to make a simple Crystal Report with data extracted from sql
server 2005. I use C# in VS2005.
In the windowform I use a CrystalReportsViewer and I add a new CR to the
project....design my report( add the fields from table to the
DETAILS section) , and in the end, after I run the application the
report displayed is a blank page. If I use the same dataset as a
datasource for the datagridview, I get all the information from the DB.
For the exemple I use a trivial table with 3 columns
(ID, NAME, AGE) and 4 rows containing userful data. The dataset which I
use is built through  a BindingSource.

What is wrong with this project? What am I missing? Any clue?

Thanks
Victor Paraschiv
Morgan Fears - 24 Jun 2006 02:25 GMT
You need to set the report datasource before viewing the report.
Ex:
DataSet ds = MYDataSet;
MyReport.SetDataSource(ds);

> Hi,
> I want to make a simple Crystal Report with data extracted from sql
[quoted text clipped - 14 lines]
> Thanks
> Victor Paraschiv
Victor Paraschiv - 24 Jun 2006 13:11 GMT
I followed your instructions and I got the things done. Thanks a lot.
The problem was that I used a class as datasource for my report...
without instantiating any object. Where was my head....

Thanks

> You need to set the report datasource before viewing the report.
> Ex:
[quoted text clipped - 19 lines]
>> Thanks
>> Victor Paraschiv

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.