Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddTextObject method
Message
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Divers
Thread ID:
00839268
Message ID:
00839281
Vues:
21
Hi Richard,

It appears like you don't have a third section as part of your report. Collections in .NET are zero based so are you sure you have three sections?

>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!!
-----------------------------------------

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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform