Jaspersoft Studio issue with subreports

时间:2015-12-08 19:30:07

标签: jasper-reports subreport

I am having an issue while attempting to compile my Main report which consists of a Sub report in Jaspersoft Studio.

This is the error I am getting:

Private Sub PictureBox_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove, PictureBox2.MouseMove, PictureBox3.MouseMove
    ' Initiate dragging.
    Me.DoDragDrop(sender, DragDropEffects.Copy)
End Sub

I have looked all over the internet and have looked in every Stack Over Flow question that may help with this and I am still coming up short.

Any information on this issue will be greatly appreciated!

-Colt

1 个答案:

答案 0 :(得分:0)

这里的问题可以分为两个方面。

  1. 如何创建传递给报告的JasperReports数据源

    这是您用于运行JasperReports的代码。 JasperReports Server管理数据源的创建和事务控制。您正在使用的Firebird JDBC URL是什么?

  2. 如何将连接传递给子报告

  3. 这是在JRXML中。使用子报告时,您必须添加:

    <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>