I have an MVC application which displays reports based on the report viewer.
Currently, the report has 4 columns and the requirement is to show columns based on the parameters selected.
I had achieved the solution by using sending parameters to the rdlc file and hiding the columns.
But now the problem which I am having is, when the report is exported as excel the last hidden column is showing as an empty column and this is an issue when printing the report from excel.
I would like to know if there is anything that can be done through code so that the column is not generated at all instead of hiding it. had done a lot of research but didnt find any solution. Can anyone please help me... Thanks!!!
One option would be to update the column's cell expressions to not return anything unless the parameter is set to show that column:
=iif(Parameters!HideColumnValue,Nothing,Fields.YourFieldName.Value)
If your column has background or line formatting that needs to not show when the column his hidden, you can set that as well:
Background Color:
=iif(Parameters!HideColumnValue,"White","Gainsboro")
Lines:
=iif(Parameters!HideColumnValue,"None","Solid")
Related
I have a report where I would like to select which field of database to show/print and hide all unselected field.I had seen in Fastreport demo but its only Choosing records to print. By the way i'm using dbexpress connection and firebird for database.
Any one who has some ideas about this?
Another simple solution would be to solve it on Delphi itself, before calling your Report.
Just add a calculated field to your dataset, and make it return the content of the real field that you want to show on your report. Now you can link your Report to that calculated field, and each time it will present the field that you have selected to present.
I have this unformatted table link that has 3 rows and 2 columns. The second column has a barcode generated from the information in the first column
When changing the table model, removing some columns: PDF generation happens like this: link overwriting only the information that changed and keeping "dirt" from the previous generation.
Anyone knows what's going on?
I am creating a Highstocks graph with multiple line series from an html table using the data module, however if any value in the first row of the table is Null (empty) the chart fails. If I change the empty values to 0 then the chart does then appear. This only happens for the first row, if the following rows contain null values there is not a problem. Does anyone know a solution for this?
It looks like a bug, so I reported that to our developers here: https://github.com/highcharts/highcharts/issues/5336. Thanks
Show / Hide Fields in Pentaho Report Based on User Input.
Version : Pentaho RD version : 5.2.0.0-209
Efforts :
I have used the banding element and the functionality formula to 'invisible consumes space'
I have used two bands one within another, with different layouts 'block' and 'row' to remove both spaces for invisible elements (in rows and columns).
Result :
It is giving appropriate result and working fine in Pentaho Report Desinger tool itself while updating Query to fetch any field either col1,col2 etc...
- It removes the hiding empty column space from row and column both. Agreed with that.
*Problem :
It still shows the blank Invisible Consumes column Space when doing that .prpt report integration in web application. eg. Grails
Please help me to come out from the problem.
Thanks.
I need create a crystal report to report the column across not down. The report itself is very simple, there is no need to group and summarize. The only thing is different from regular report is it need display the column across rather than down. I try use cross-tab, or multiple columns with no success. is there any way i can make is down in crystal? Thanks
The regular report with column down:
I need display like these:
try the following
put the the 4th names of the first column in the page header and make that section underlay the following section, then create 4 details sections, one per column and put the values values right next below and make the details to grow across then down.
for instance
page header
Mth
Vendor
Trans#
Amt
end of page header
details1 date field
details2 vendor field
details3 trans field
details4 amt field