Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making a generic Crystal Reports class
Message
 
À
27/01/2008 22:00:42
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
OS:
Windows XP SP2
Divers
Thread ID:
01285992
Message ID:
01286049
Vues:
15
>Hey gang,
>Here is my situation - I am attempting to build a generic Crystal Reports class where the end-user provides a path to the .rpt file, a path to an .xml file, and other options on how to export the report. A requirement is for the .xml file to have an external schema.
>
>In my class, I am importing the .xml into an un-typed DataSet using the DataSet.ReadXML method and passing that into the report. The problem is that all of my fields are converted to strings somehow and it my report I get errors when I try to multiply two numeric values in a formula.
>
>How can I make this work so the types of my values are preserved?
>
>Thanks!!!
>
>EDIT, this isn't an ASP.NET post - somehow that got incorrectly set.

DataSet.ReadXML has a couple of overloads. Did you look into them? One of the overloads should read the schema of the XML before reading the data.
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform