How to get X instead of checkbox in Stimulsoft

Stimulsoft Ultimate discussion
Post Reply
qlikviewramu
Posts: 2
Joined: Wed Feb 01, 2017 6:41 am

How to get X instead of checkbox in Stimulsoft

Post 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
Attachments
IN my report  report.png
IN my report report.png (3.61 KiB) Viewed 2047 times
I_need_to_display_in_excel.png
I_need_to_display_in_excel.png (2.11 KiB) Viewed 2047 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How to get X instead of checkbox in Stimulsoft

Post by Alex K. »

Hello,

You can select necessary type in the CheckStyle property.

Thank you.
Attachments
Capture.PNG
Capture.PNG (23.02 KiB) Viewed 2043 times
qlikviewramu
Posts: 2
Joined: Wed Feb 01, 2017 6:41 am

Re: How to get X instead of checkbox in Stimulsoft

Post 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?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How to get X instead of checkbox in Stimulsoft

Post 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.
Post Reply