Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pointing a Crystal textobject at a dataset field
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00694184
Message ID:
00694710
Views:
11
Hi Evan,

Crystal Reports for .NET uses an object model that you can control programically. A good link to look at the object model is at:

ms-help://MS.VSCC/MS.MSDNVS/crystlrf/html/crurfaboutreportdocumentobject.htm

These classes allow you to make all kinds of changes in code for your reports. I would recommend looking at the DatabaseFieldDefinition class which exposes the information about each field in your table. Also I would look at the FieldObject class which references each object included in your report and its DataSource.

>>All of the examples for Crystal Reports.Net show how to put a field on a report by dragging a SQL or ADO.NET dataset field onto a report. My dataset is created on the fly. How do I point a textbox object at a field in my dataset. I can't find any properties to do this.
>
>I'll explain this a bit more.... I would like to access unbound field objects on the report and bind them to dataset tables. Something like
>
>oReport.Section3.fldName.Boundto = dsStaff.cResult.name
>oReport.Section3.fldInfo.Boundto = dsStaff.cResult.info
>
>Is this possible? I can figure it out the syntax from the VS.NET help.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform