iReport propertie values not saved - properties

I am using jasper ireport 5.6 and after changing properties
net.sf.jasperreports.export.xls.ignore.cell.border
net.sf.jasperreports.export.xls.ignore.cell.background
from false to true, I cannot change them back. Values are always set to true.
Any ideas??
thank you

Related

VB .Net Disable user row resize on datagridview

I am filling Datagridview with dataset and Datagridview has all resize properties set to false but, user can even resize rows. How could I disable it?
MyDatagridView.AllowUserToAddRows = False
MyDatagridView.AllowUserToResizeRows = False
MyDatagridView.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.None
...
I realize that this is an old post, but I had exactly the same problem. The AllowUserToResizeRows property may be overridden by the MyDatagridView.RowTemplate.Resizable setting. Try setting both to False, solved the problem for me.
In my experience,
MyDatagridView.AllowUserToResizeRows = False
does always prevents user to resize a row. I don't remember a case when it would be overriden by another property setting (and I use DataGridViews a lot). So I would say the line is not processed (you can debug it) or it is overriden by another setting later (track property value and see when it gets changed).
And by thew way, you can set it in the Datagridview Properties in VisualStudio, to make it a default setting.

Hide chart in Pentaho Report Designer if not data

We are setting a chart on Pentaho Report Designer 5.3 and we want it to hide if no data is returned by the query, aligned to that chart.
We have used, the:
=NOT(ISEMPTYDATA())
in the visible style expression but it shows
chart_user_no_data_available
on the chart, and it is not working.
How do I solve this?
You can define a function that returns true/false. True means "have data", False means "No Data". Then, write in the visible style expression the following code :
=YourFunction

report viewer hide column with external parameter

Need some help on this, when I list Report According to ListBox, All columns are displayed, but I just want to list according to items in ListBox so others columns has to be invisible.
I tried some code = iif(Parameters!TARIH.Value = "True", false,true) but it doesnt work.
Can anyone help me to solve this?
If TARIH is a boolean parameter then you can set column Hidden property like this:
=IIf(Parameters!TARIH.Value, False, True)
Or like this:
=Not Parameters!TARIH.Value
Please note that in rdlc you have to set an Hidden property and not a Visible property.

visibility expression in report builder with multiple hidden values

I have an image that i would like to hide based on a value. This value can have 3 possible returns. "AP02", "AP16", "" (blank). I want the image visible only if the value is "AP16"
Currently i am using this code:
=First(Fields!LastMPClientName.Value, "ClientSummary")="AP02"
The above works if the value is "AP02" however i am seeing more and more blank values for my clients.
How can i make this image hidden for both "AP02" and "" values?
I am using report builder 3.0 from a SQL 2008R2 instance.
Cant you use an OR?
=First(Fields!LastMPClientName.Value, "ClientSummary")="AP02" OR First(Fields!LastMPClientName.Value, "ClientSummary")=""

Cell in Devexpress Treelist is set to editable yet it won't let me edit

I am using a DevExpress (10.2) Treelist in my VB.Net project in Visual Studio 2008. I currently have a treelist with TreeList.OptionsBehavior.Editable = True. I have two columns were the first one is AllowEdit = False. The second column I am setting the AllowEdit and ReadOnly dynamically though the action FocusedNodeChanged.
Within the FocusedNodeChange subroutine I check if a specific value is in the row and if so I set it to be editable or non-editable. I am setting it to be editable with:
treeList.Columns("field_name").OptionsColumn.ReadOnly = False
treeList.Columns("field_name").OptionsColumn.AllowEdit = True
and setting it to readonly with:
treeList.Columns("field_name").OptionsColumn.ReadOnly = True
treeList.Columns("field_name").OptionsColumn.AllowEdit = False
This works to a degree. Right now if I go in the editable cell in the treelist the cursor appears and blinks so I know it is editable and if I go in the cell when the un-editable row is focused the cursor doesn't blink.
However even though the cursor blinks I am unable to type. When I click on keys (numbers and letters) on the keyboard nothing is written.
SOLVED
Simple solution. The stored procedure I was using to fetch the data into the table didn't contain the field for the particular column I was trying to make editable and not editable. This was because it was a new value that was insert/updated differently than normal. To fix this I fetched null and/or 0 and it worked fine.
The code you are using is not quite correct. The best solution is to handle the TreeList's ShowingEditor event and set the e.Cancel parameter accordingly. To determine the current cell, use the TreeList's FocusedColumn and FocusedNode properties.