导出到csv:一行分为两行

时间:2014-06-17 09:19:18

标签: csv jasper-reports

我正在尝试将一些“档案”(在我的情况下)导出到带有jasper报告的CSV文件中。一切顺利,但jasper报告似乎不时将1行划分为2。

示例:

1: 2561, 35013, 20140604, 20140604, , , , , , , , , , , 2731501, 2731501, LP, A, , , , , 2014, false
2: 2563, 35013, 20140505, 20140604, , , , , , , , , , , 2731501, 2731501, AQ, F, , , , , 2014, false
3: 25, , 20, 20, , , , , , , , , , , 27, 27, ZZ, C, , , , , 20, fal
4: 65, , 140604, 140604, , , , , , , , , , , 31501, 31501, , , , , , , 14, se
5: 2568, 35013, 20140505, 20140604, , , , , , , , , , , 2731501, 2731501, AQ, , , , , , 2014, false

你可以看到第1行和第2行是正确的。第3行和第4行分为2行,但应为1行。这里的任何人都有同样的问题和可能的解决方案吗?

我已经从数据库中复制了记录并再次导出,然后一切都是应该的。

1 个答案:

答案 0 :(得分:1)

The answer by @GregD

It's indeed the JRCsvExporter. But it's fixed: noticed that it happend every 16th line and it seems that was the place where JR put a new page. Set the "ignore pagination" property to true and it was fixed.