将子报告字段传递给另一个子报告?
我有一份相当复杂的报告。我已经设法创建它直到第一个子报告。现在我必须“水平”总结第二个子报告内的第一个子报告的字段。
1) 如何将字段从子报告 1 传递到子报告 2 (名称和总计) &水平列出/每年?
2)如何让每个摘要以类似(Client1,Year1...YearN)的方式显示。如果我为第二个子报告插入一个部分,它会在(Client1,Year1)之后显示第二个子报告。我在专家部分之后设置了页面,但它不是我想要的顺序:|
我想在 (client1,Year1--------YearN)
报告以如下方式设计后显示此部分
Main Report
----
Sub Report 1
Group (Client 1 Year 1)
--------------------------------
Name Amount TotalAmount
--------------------------------
John 1,000 300,000,000
End of Page
----------------------------------
(Client 1 Year 2)
--------------------------------
Name Amount TotalAmount
--------------------------------
John 5,000 400,000,000
End of Page
----------------------------------
Group (Client 2 Year 1)
--------------------------------
Name Amount TotalAmount
--------------------------------
Stevens 1,000 10,000,000
End of Page
----------------------------------
(Client 2 Year 2)
--------------------------------
Name Amount TotalAmount
--------------------------------
Stevens 2,000 40,000
End of Page
----------------------------------
End Sub Report 1
-----
Sub Report 2
----------------------------------------------------------------
Name TotalAmount TotalAmount ....... TotalAmount
-----------------------------------------------------------------
John Year1(TotalAmount) Year2(TotalAmount).... YearnN(TotalAmount)
Stevens Year1(TotalAmount) Year2(TotalAmount).... YearnN(TotalAmount)
End Sub Report 2
I have a pretty complex report. I have managed to create it up till the 1st sub report. Now I have to summarize the 1st sub report's fields inside a 2nd subreport 'horizontally'.
1) How do I pass the fields from sub report 1 to sub report 2 (Name & totals) & list them horizontally/each year?
2) How do I get each summary to show in a way like (Client1, Year1...YearN). If I am inserting a section for the second sub report it shows the 2nd sub report right after (Client1,Year1). I set page after in section expert but its not in order I wanted :|
I want to show this section after (client1,Year1-------YearN)
Report is designed in a way like
Main Report
----
Sub Report 1
Group (Client 1 Year 1)
--------------------------------
Name Amount TotalAmount
--------------------------------
John 1,000 300,000,000
End of Page
----------------------------------
(Client 1 Year 2)
--------------------------------
Name Amount TotalAmount
--------------------------------
John 5,000 400,000,000
End of Page
----------------------------------
Group (Client 2 Year 1)
--------------------------------
Name Amount TotalAmount
--------------------------------
Stevens 1,000 10,000,000
End of Page
----------------------------------
(Client 2 Year 2)
--------------------------------
Name Amount TotalAmount
--------------------------------
Stevens 2,000 40,000
End of Page
----------------------------------
End Sub Report 1
-----
Sub Report 2
----------------------------------------------------------------
Name TotalAmount TotalAmount ....... TotalAmount
-----------------------------------------------------------------
John Year1(TotalAmount) Year2(TotalAmount).... YearnN(TotalAmount)
Stevens Year1(TotalAmount) Year2(TotalAmount).... YearnN(TotalAmount)
End Sub Report 2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果可能的话,我建议将子报表数据从子报表移到主报表中,并将交叉表放入报表页脚中。
If possible, I recommend moving the sub-report data out of the sub-report into the main report, and putting a cross-tab into the report footer.
如何将字段从子报告 1 传递到子报告 2?
使用全局变量。将主报表中的 var 定义为全局变量,并在 subreport1 中更新并在 subreport2 中访问它们。
How do I pass the fields from sub report 1 to sub report 2?
Use Global var. Define the var in the main report as global and update in the subreport1 and access them in subreport2.