Hepl on hierarchical band Please....

Stimulsoft Reports.NET discussion
Arunkumar S
Posts: 21
Joined: Mon Jul 23, 2007 5:12 am
Location: Chennai

Hepl on hierarchical band Please....

Post by Arunkumar S »

I was trying to use the hierarchical band band but i am getting an error

Method: [GetItems]
Object reference not set to an instance of an object

i have one header band, and Hierarchical band. in Hierarchial band i have set the "Key Data Column", "Master Key Data Column", when i do the preview, i am getting this error.

If you have any small example for this it would be much helpful.

Arunkumar.s
Senior Application Developer.
Indepth Solutions Pvt Ltd.
India.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Hepl on hierarchical band Please....

Post by Edward »

Please see the report template in attachment. You can open it in the Demo.exe sample application.

Thank you.
Attachments
22.HierarchicalSample.mrt
(15.7 KiB) Downloaded 267 times
Arunkumar S
Posts: 21
Joined: Mon Jul 23, 2007 5:12 am
Location: Chennai

Hepl on hierarchical band Please....

Post by Arunkumar S »

I was facing the same problem

Method: [GetItems]
Object reference not set to an instance of an object

and found the issue, that the column name i have given for "Key Data Column" Has the null values. so it is throwing that error. Is it Possible to fix this ?



Arunkumar.s
Senior Application Developer.
Indepth Solutions Pvt Ltd.
India.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Hepl on hierarchical band Please....

Post by Edward »

Thank you for your detailed information.

We will inform you in this topic when the fix will be available.

Thank you.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Hepl on hierarchical band Please....

Post by Vital »

Hello,

Problem fixed. Patch will be available in build from 9 Oct.

Thank you.
Arunkumar S
Posts: 21
Joined: Mon Jul 23, 2007 5:12 am
Location: Chennai

Hepl on hierarchical band Please....

Post by Arunkumar S »

Hello,

Thanks for the fix. Now the NULL issues got solved, but having some issues with rows at same level.

Eg: I am having 2 columns
Key Data Column: pkCallListPosition
Master Key data Column: fkParent

The problem comes when there are 2 rows at same level. I mean there are 2 employees at same level under them there are 5 employees reporting to them. We wanted these 2 should be printed contineousely and then the rest 5 (who are all reporting to the above level) to be printed. But currently, it prints the First value, and under that it prints that 5 persons reporting to them then it prints the second one but that too is not printed at the same level.

Hope following will explain the problem better.

"EmpA" & "EmpB" are in Same Level, "E1", "E2", "E3", "E4" and "E5" are reporting to "EmpA" or "EmpB". All of them are reporting to "EMP"

The Result we wanted is.
---->EMP
-------->EmpA
-------->EmpB
------------>E1
------------>E2
------------>E3
------------>E4
------------>E5

But Currently it comes like....
---->EMP
-------->EmpA
------------>E1
------------>E2
------------>E3
------------>E4
------------>E5
---->EmpB


Thanks for your support.
Arunkumar.s
Senior Application Developer.
Indepth Solutions Pvt Ltd.
India.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Hepl on hierarchical band Please....

Post by Edward »

Thank you for the bug report.

Could you please send the test project you talking about to support[at]stimulsoft.com

Thank you.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Hepl on hierarchical band Please....

Post by Edward »

Thank you very much for the test solution.

Please download the latest prerelease build. The issue is fixed.

Thank you.
Arunkumar S
Posts: 21
Joined: Mon Jul 23, 2007 5:12 am
Location: Chennai

Hepl on hierarchical band Please....

Post by Arunkumar S »

Hi,

Thanks for the reply. But Now with the latest build i took (Stimulsoft Reports.Net 2007.10.19 D2005), i am getting the old error.

Method: [GetItems]
Object reference not set to an instance of an object

my report is not running.

I used to get this error when my "Key Data Column" has the null values. So this time i have filtered the null rows as well, but still no luck.

Thanks.
Arunkumar.s
Senior Application Developer.
Indepth Solutions Pvt Ltd.
India.
Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

Hepl on hierarchical band Please....

Post by Guest »

The problem is in the System.Nullable type. Your report have two variables with this type: var_Indent, var_Count. If you change this type then the report will work.

We will try to fix this issue, as soon as possible.

Thank you.
Post Reply