Posted 30 January 2019, 6:14 am EST
I have a SectionReport in which I’d like to render conditionally. Yet I face two major problems:
How do I access a Field in the Report that I already set?
How do I access data from the Dataset I could drag in like @ClientName, but in code?
We’re currently running VB.NET Scripts, but also responses in C# are very welcome.
What I tried so far:
public void ActiveReport_ReportStart() {
rpt.Fields["fmlFormel_Text_Rekapitulation"].Value = "Hallo Welt!";
}
We’re currently running VB.NET Scripts, but also responses in C# are very welcome.We’re currently running VB.NET Scripts, but also responses in C# are very welcome.
What I tried so far:What I tried so far:
public void ActiveReport_ReportStart() {
rpt.Fields["Formel_Text_Rekapitulation1"].Value = "Hallo Welt!";
}
Yet I got a null pointer exception. The name is from Draft (Name) in the property dialog.