简体   繁体   English

在运行时绑定字段Crystal报表

[英]bind field at run time Crystal report

I want to create a column on a crystal report. 我想在水晶报表上创建一列。 I am binding crystal report to .net class object collection at run time. 我在运行时将Crystal Report绑定到.net类对象集合。 Now one of the columns I need to bind to the object collection property which is another object to it's property. 现在,我需要将其中一列绑定到对象集合属性,该属性是该属性的另一个对象。 How do I do this ? 我该怎么做呢 ?

domain of the qustion is not that cliear. 问题的领域不是那个时代。

if the object what you need to display in the report is not in the detail section of the report you will be able to pass this as a parameter. 如果您需要在报告中显示的对象不在报告的详细信息部分中,则可以将其作为参数传递。

if this is not not working for you. 如果这对您不起作用。 create the report based on a xml schema. 基于xml模式创建报告。 and genarate the report based on that schema. 并根据该架构来生成报告。

  1. http://vb.net-informations.com/crystal-report/vb.net_crystal_report_from_xml_file.htm http://vb.net-informations.com/crystal-report/vb.net_crystal_report_from_xml_file.htm

  2. http://www.codeproject.com/KB/cs/xmlcrreport.aspx http://www.codeproject.com/KB/cs/xmlcrreport.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM