Page 1 of 1

How to Change Group Header Conditon

Posted: Mon May 14, 2012 11:59 am
by parmarjitesh
Dear Sir,
As i am a crystal report user....i m trying to test all reports made in StimulSoft...
Following is My problem...
As in Crystal Reports We can Create a Formula Field....
For Eg : Formula Name GHdr1 = {RPT.ACC_NM}
Than we could create a GroupHeader On the Formula GHDR1...
and than at runtime as per your Criteria we can change the Value of Formula : GHdr1...
and than we could make summaries by Right Clicking Saying -> Insert Summary on the specified Field

I Tried Using Variable but couldn't do such a simle task...
I Request you to show me how to do the same as mentioned above
and also please give more vb.net samples........samples and videos provided are not enough to learn such simple things..

And Sir Give the Solution in VB.Net and Not C#
Awaiting a +ve reply


How to Change Group Header Conditon

Posted: Tue May 15, 2012 7:22 am
by HighAley
Hello.
parmarjitesh wrote:As i am a crystal report user....i m trying to test all reports made in StimulSoft...
Following is My problem...
As in Crystal Reports We can Create a Formula Field....
For Eg : Formula Name GHdr1 = {RPT.ACC_NM}
Than we could create a GroupHeader On the Formula GHDR1...
and than at runtime as per your Criteria we can change the Value of Formula : GHdr1...
and than we could make summaries by Right Clicking Saying -> Insert Summary on the specified Field

I Tried Using Variable but couldn't do such a simle task...
I Request you to show me how to do the same as mentioned above
and also please give more vb.net samples........samples and videos provided are not enough to learn such simple things..

And Sir Give the Solution in VB.Net and Not C#
Awaiting a +ve reply
You should create a new variable set its' value to {RPT.ACC_NM} and check the Read Only property.
Then you could use this variable in the Group header condition.

Thank you.

How to Change Group Header Conditon

Posted: Tue May 15, 2012 8:06 am
by parmarjitesh
Dear Sir,

I was able to create the variable as told u..

But at runtime i want to change the variable GHDR1 to {RPT.ACC_CODE} ANOTHER DATABASE FIELD

when i change the value at runtime following error is displayed

System.ArgumentException occurred
Message=Property set method not found.
Source=mscorlib
StackTrace:
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
at Stimulsoft.Report.StiReport.set_Item(String name, Object value)
at VBNet_Retail.frmRepPrintMaster.cmdPrint_Click(Object sender, EventArgs e) in D:\VBNet_Retail\Forms\frmRepPrintMaster.vb:line 165
InnerException:

How to Change Group Header Conditon

Posted: Wed May 16, 2012 7:07 am
by HighAley
Hello.
parmarjitesh wrote:I was able to create the variable as told u..

But at runtime i want to change the variable GHDR1 to {RPT.ACC_CODE} ANOTHER DATABASE FIELD

when i change the value at runtime following error is displayed

System.ArgumentException occurred
Message=Property set method not found.
Source=mscorlib
StackTrace:
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
at Stimulsoft.Report.StiReport.set_Item(String name, Object value)
at VBNet_Retail.frmRepPrintMaster.cmdPrint_Click(Object sender, EventArgs e) in D:\VBNet_Retail\Forms\frmRepPrintMaster.vb:line 165
InnerException:
Are you trying to use the GHDR1 variable in the same GroupHeader? Maybe it's better to use other variable.
Please send us a working sample project to reproduce your issue and describe at what moment do you need to change the variable value?

Thank you.