Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pointing a Crystal textobject at a dataset field
Message
 
À
28/08/2002 22:37:58
Ron Hodge
Sebrex Systems, Inc.
Dacula, Georgie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00694184
Message ID:
00694973
Vues:
16
>Evan,
>I built my viewer forms with ado.net off the following sample I got on Crystal's site:
>http://support.crystaldecisions.com/communityCS/FilesAndUpdates/vbnet_win_adodotnet.exe.asp

That doesn't work either. The fundamental difference is that I am creating my dataset programmatically, so it doesn't or can't (I could be wrong) exist at design time to create the report from.

Here is how I create my dataset..
// create instance of report
public test oReport = new test();
// create staff object
string lcStaffXML;
Staff oStaff = new Staff(); 
DataSet dsStaff = new DataSet();
// get records from biz object
lcStaffXML = oStaff.GetRecords(".T.");
// convert xml string to stream, then into XMLTextReader so that dataset can use it (sigh!)
StringReader loStream = new StringReader(lcStaffXML);
XmlTextReader loXmlTextReader = new XmlTextReader(loStream);
dsStaff.ReadXml(loXmlTextReader,XmlReadMode.ReadSchema);
// attached the dataset to the report and the report to the report viewer
oReport.SetDataSource(dsStaff);
crvMain.ReportSource = oReport;
My thought was to then go into the report then attach each field in the dataset to each unbound field object in the report. I can't figure out how to do this.

Is there another way? Is there a way to make the dataset above available at design time so that I can build the report with it?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform