Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddTextObject method
Message
From
16/10/2003 10:48:14
 
 
To
All
General information
Forum:
ASP.NET
Category:
Reporting
Title:
AddTextObject method
Miscellaneous
Thread ID:
00839268
Message ID:
00839268
Views:
101
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!!
Next
Reply
Map
View

Click here to load this message in the networking platform