How Adding Interaction inside Report at Run Time ?

Stimulsoft Ultimate discussion
Eng.MAMB
Posts: 14
Joined: Mon May 23, 2011 1:44 am
Location: K.S.A

How Adding Interaction inside Report at Run Time ?

Post by Eng.MAMB »

hello all

Please Help me

I build Report at run Time
And I need add ( Collapse ) interaction to Gruop

I write This Code to Build Interaction And Collapse inside Group (HederGroup)

Code: Select all


 Dim Interaction As New Stimulsoft.Report.Components.StiBandInteraction
                    Interaction.CollapsingEnabled = True

                    Dim Collapse As New StiCollapsedExpression("{GroupLine  1}")

                    Interaction.Collapsed = Collapse
                    HederGroup.Interaction = Interaction

But the Bug show in (( Interaction.Collapsed = Collapse))
Bug message is (Object reference not set to an instance of an object.)

Thanks,
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How Adding Interaction inside Report at Run Time ?

Post by Alex K. »

Hello,

Please check the following code:

Code: Select all

Dim GroupHeaderBand1_Interaction As StiBandInteraction = New StiBandInteraction()
GroupHeaderBand1.Interaction = GroupHeaderBand1_Interaction
GroupHeaderBand1_Interaction.CollapsingEnabled = True
GroupHeaderBand1_Interaction.DrillDownPageGuid = Nothing
Dim Collapse As New StiCollapsedExpression("{GroupLine  1}")
GroupHeaderBand1_Interaction.Collapsed = Collapse
report.Compile()
report.Show()
Thank you.
Eng.MAMB
Posts: 14
Joined: Mon May 23, 2011 1:44 am
Location: K.S.A

How Adding Interaction inside Report at Run Time ?

Post by Eng.MAMB »

Thank you Mr.Aleksey
:biggrin:

Now I Have Other Quation
:blush:
Q: How I Can Add Collapse in Designer in Page2 Which is connected via Interaction in Page1 ?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How Adding Interaction inside Report at Run Time ?

Post by Alex K. »

Hello,

Can you please describe your task in more details or send us sample project for analysis in which occurs problem with adding collapsing.

Thank you.
Eng.MAMB
Posts: 14
Joined: Mon May 23, 2011 1:44 am
Location: K.S.A

How Adding Interaction inside Report at Run Time ?

Post by Eng.MAMB »

I Attached ".MRT" Report File And XML Datafile with this File
http://www.zshare.net/download/94745671d4717dd4/
Please Put DataSourc.xml in "C:\"

---
Ok
The problem in Collapse page 2 is Hide every thing when I click on it

http://www.freeimagehosting.net/901aa

:toothgr:

http://www.freeimagehosting.net/bbf4b
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How Adding Interaction inside Report at Run Time ?

Post by Alex K. »

Hello,

Please check the Drill-Down Parameter 1 in your report.

Thank you.
Attachments
1352.ExReport_modified.mrt
(29.91 KiB) Downloaded 272 times
Eng.MAMB
Posts: 14
Joined: Mon May 23, 2011 1:44 am
Location: K.S.A

How Adding Interaction inside Report at Run Time ?

Post by Eng.MAMB »

Thanks for replay Mr. Aleksey

But TThis is not what I mean
:pffft:

The Problem in Collapse is hide when i Click on it in Page 2


Image

Image



Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How Adding Interaction inside Report at Run Time ?

Post by Alex K. »

Hello,

We couldn't reproduce this bug. Could you explain your issue in more details and, if possible, send us a step-by-step guide how to reproduce the issue?

Thank you.
nitinsobti
Posts: 19
Joined: Wed Sep 19, 2012 3:07 pm

Re: How Adding Interaction inside Report at Run Time ?

Post by nitinsobti »

Can you do something similar for the cross tab component in Silverlight?
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How Adding Interaction inside Report at Run Time ?

Post by HighAley »

Hello.

The cross tab doesn't support Collapsing in Silverlight now. But we are working on this feature.

Thank you.
Post Reply