How to remove columns of a CSV file in BIRT Report

时间:2016-05-11 11:37:17

标签: java birt

I have a csv file to be downloaded from my code in BIRT Report. I have done that, but I have some columns that are not needed for me in that csv file. So I need to remove those columns using this BIRT Report. I have searched through google but I haven't found a solution.

is it possible to remove those columns from the csv file? I am fresh to this BIRT Report. So I'm stuck in it. I did't find any code relevent to it and I haven't tried any code. so I'm confused where to start.

Thanks.

1 个答案:

答案 0 :(得分:1)

我不确定你想做什么。也许你需要重新解释你的问题以便更好地理解。

为.cvs文件创建数据源后,您创建了一个数据集。在那里,您可以在数据集中选择所需的列。见下图。您无法更改文件的内容,只能更改报告的选择。 column select 此外,如果您在数据集中创建报表中的表格,则无需从数据集中选择要显示的所有列。

如果要过滤掉文件的某些行,可以添加指定要隐藏的行的过滤器。请参阅第二张图片:(只需将行添加到数据集中,内容为row2。 filter