Click here to Skip to main content
15,928,207 members
Home / Discussions / C#
   

C#

 
GeneralRe: Design Question - Business Object Layer and Data Access Pin
Serge Lobko-Lobanovsky4-Oct-04 1:07
Serge Lobko-Lobanovsky4-Oct-04 1:07 
GeneralReading word document whit C# Pin
evalle5053-Oct-04 12:35
evalle5053-Oct-04 12:35 
GeneralRe: Reading word document whit C# Pin
sreejith ss nair3-Oct-04 20:54
sreejith ss nair3-Oct-04 20:54 
GeneralRe: Reading word document whit C# Pin
Anonymous4-Oct-04 5:00
Anonymous4-Oct-04 5:00 
GeneralDrawing outside of your Form!! Pin
RichiLloyd3-Oct-04 10:33
RichiLloyd3-Oct-04 10:33 
GeneralRe: Drawing outside of your Form!! Pin
benjymous4-Oct-04 2:07
benjymous4-Oct-04 2:07 
GeneralPassing databaseName to crystal report Pin
amgad_fathy3-Oct-04 8:52
amgad_fathy3-Oct-04 8:52 
GeneralRe: Passing databaseName to crystal report Pin
Heath Stewart3-Oct-04 9:18
protectorHeath Stewart3-Oct-04 9:18 
You might consider a better approach that is more robust: use an ADO.NET DataSet. If you build a typed DataSet using xsd.exe or Visual Studio .NET (add a new DataSet item to your project; or drag a table, view, or stored procedure that returns a result set from the Server Explorer). When designing your report, bind to that typed DataSet and you can design your report just as if you built it against a connected database.

Before displaying your report, you get the DataSet however you see fit - from one SQL database or another, or from an Oracle database or even read from an XML file representation of a DataSet - then pass the instance to the SetDataSource method of the ReportDocument.

This way you can use any data source you want, so long as the data ends up in a DataSet that uses the same schema as the typed DataSet you've designed.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
GeneralDataBinder.Eval: 'System.Data.Common.DbDataRecord' does not contain a property with the name REPORTTO Pin
macsgirl3-Oct-04 8:45
macsgirl3-Oct-04 8:45 
GeneralRe: DataBinder.Eval: 'System.Data.Common.DbDataRecord' does not contain a property with the name REPORTTO Pin
Heath Stewart3-Oct-04 9:14
protectorHeath Stewart3-Oct-04 9:14 
GeneralAvoiding Win32 dependancy Pin
Andres Coder3-Oct-04 6:03
Andres Coder3-Oct-04 6:03 
GeneralRe: Avoiding Win32 dependancy Pin
Heath Stewart3-Oct-04 9:13
protectorHeath Stewart3-Oct-04 9:13 
Generalregex question Pin
g00fyman3-Oct-04 3:13
g00fyman3-Oct-04 3:13 
GeneralRe: regex question Pin
Not Active3-Oct-04 5:20
mentorNot Active3-Oct-04 5:20 
Generalcharacter escaping problem Pin
sween33-Oct-04 3:10
sween33-Oct-04 3:10 
GeneralRe: character escaping problem Pin
Stefan Troschuetz3-Oct-04 3:57
Stefan Troschuetz3-Oct-04 3:57 
GeneralRe: character escaping problem Pin
sween24-Oct-04 2:25
sween24-Oct-04 2:25 
GeneralRequest a new login Pin
quilkin3-Oct-04 2:25
quilkin3-Oct-04 2:25 
GeneralRe: Request a new login Pin
Dave Kreskowiak4-Oct-04 7:12
mveDave Kreskowiak4-Oct-04 7:12 
GeneralRe: Request a new login Pin
quilkin4-Oct-04 7:42
quilkin4-Oct-04 7:42 
GeneralRe: Request a new login Pin
Anonymous4-Oct-04 8:13
Anonymous4-Oct-04 8:13 
GeneralRe: Request a new login Pin
Anonymous4-Oct-04 11:17
Anonymous4-Oct-04 11:17 
Questionwindows forms repeater? Pin
Roger Alsing2-Oct-04 23:52
Roger Alsing2-Oct-04 23:52 
GeneralNeed help coding a basic C# program Pin
Member 13850492-Oct-04 22:08
Member 13850492-Oct-04 22:08 
GeneralRe: Need help coding a basic C# program Pin
Stefan Troschuetz2-Oct-04 23:44
Stefan Troschuetz2-Oct-04 23:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.