Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddTextObject method
Message
De
16/10/2003 10:48:14
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Titre:
AddTextObject method
Divers
Thread ID:
00839268
Message ID:
00839268
Vues:
99
Chaps,

Am playing around with C# and creating crystal reports at runtime, i am trying to add text object to a section using the following code
crysApp = new CRAXDDRT.Application();
crysRep = new CRAXDDRT.Report();
crysRep = crysApp.NewReport();
crysRep.Sections[1].AddPictureObject(@"",12,10);
crysRep.Sections[2].AddTextObject("Text Object Text",10,20,true);

when it hits the line of code for "addTextObject" i get the following error

An unhandled exception of type 'System.NullReferenceException' occurred in TestQM.exe

Additional information: Object reference not set to an instance of an object

please help as i am pulling my hair out over this one and i dont have much left!!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform