Re: Connecting to SQLServer Tables
From: Brian Bischof (BrianNoSpam_at_BischofSystems.com)
Date: 03/24/04
- Next message: aleatory: "Re: "No field in the table" Error Message Afer Adding New Fields In An Existing Table"
- Previous message: Tina: "Converting to PDF"
- In reply to: Gary: "Connecting to SQLServer Tables"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 23 Mar 2004 21:28:16 -0800
Gary,
When you create a new report using the Report Wizard, in the Data tab there
are options that let you select ODBC and OLE DB connections. You can also
connect to Excel and XML files. Expand the various nodes to see all the
connectivity options you have.
If you are connecting with datasets, you have to perform these steps:
1) Instantiate the report object.
2) Call SetDataSource() and pass it the populated dataset object
3) Assign the report object to the viewer
Do this anywhere on the form (in the Load() event or in response to a button
being clicked).
HTH,
Brian Bischof
A Crystal Reports.NET book for programmers? Its here!
* Covers ASP.NET and Windows Forms
* Teaches all phases of report development
* Alerts you to the bugs and how to get around them
* Maps out the complex ReportDocument object model
* Shows how to perform runtime customization
* Demonstrates all options of connecting with ADO.NET
* Gives complete code listings for every concept presented
http://www.crystalreportsbook.com/123aspx.asp
"Gary" <gb@nospam.com> wrote in message
news:ugZiVxTEEHA.2600@TK2MSFTNGP09.phx.gbl...
> I'm trying to get started with Crystal but it only lists datasets as
> "current connections". How can I access Tables. I've seen examples that
> use ODBC and OLEDB connections to get to .MDB datasets but I can't seem to
> get it connected to SQL Server.
>
> If I have to just connect to datasets, where do I put the code to load the
> datasets?
> Help
> Gary
>
>
- Next message: aleatory: "Re: "No field in the table" Error Message Afer Adding New Fields In An Existing Table"
- Previous message: Tina: "Converting to PDF"
- In reply to: Gary: "Connecting to SQLServer Tables"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|