Page 1 of 1

How to get X instead of checkbox in Stimulsoft

Posted: Thu Mar 09, 2017 11:30 am
by qlikviewramu
Hi All,
I am new to stimulsoft,

i have generate a report ,but in the report a field contains checkbox with right mark but when i export to excel i need to display X .

How ca i do this.

Thanks in advanced,
Ramu

Re: How to get X instead of checkbox in Stimulsoft

Posted: Thu Mar 09, 2017 10:02 pm
by Alex K.
Hello,

You can select necessary type in the CheckStyle property.

Thank you.

Re: How to get X instead of checkbox in Stimulsoft

Posted: Fri Mar 10, 2017 5:55 am
by qlikviewramu
Hi AleKsey,

Thank's for your reply. But Client requirement is in the report we need to show "checked Rectangle",It's Ok.
But When export that report into excel page the all "checked Rectangle" need to shoe Cross.


Is it possiable?

Re: How to get X instead of checkbox in Stimulsoft

Posted: Fri Mar 10, 2017 8:01 pm
by Alex K.
Hello,

You can use the following code in the Exporting event of the report:

Code: Select all

for (int i = 0; i < this.RenderedPages.Count; i++)
{
	foreach (StiComponent component in this.RenderedPages[i].GetComponents())
	{
		if ((component is StiCheckBox) && (component.Name == "CheckBox1"))
		{
			((StiCheckBox)component).CheckStyleForTrue = Stimulsoft.Report.Components.StiCheckStyle.Cross;
		}
	}
}
Thank you.