liveReporting

Stimulsoft Reports.NET discussion
Post Reply
junglebird
Posts: 1
Joined: Sun Mar 08, 2009 2:56 am
Location: afghanistan

liveReporting

Post by junglebird »

Hi
I did exactly the same as the sample of stimule .net 2007 .but the problem is when i click on each the bookmark value would pass to form with null value ! and this caused thethe Null object refrence Exception in VS.net !

Code: Select all

StiComponent comp = sender as StiComponent;
            int customerID = Int32.Parse( comp.BookmarkValue.ToString());
as you see the only diffrent between my code and the LiveReport C# sample is that I ve used an Integer as bookmarkvalue
. Im so confused! is there any bug?
Thanks
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

liveReporting

Post by Edward »

Hi

Please make sure that BookmarkValue actually has values of an int type.

In case if BookmarkValue could equal zero, then please use Int32.TryParse(string, out Int32) function instead.

Thank you.
Post Reply