문제

When trying to print my Crystal Reports RPT(MainReport) in my CrystalReportViewer1, I don't know how to set the parameter for the Subreport (report1).

I've tried this:

Report1.DataDefinition.ParameterFields("@code_machine").CurrentValues.AddValue(3)

But it doesn't work, it show me the input box of CrystalReports.

I also tried :

Report1.SetParameterValues("@code_machine", 3)

What am I doing wrong?

도움이 되었습니까?

해결책

MainReport.SetParameterValue("@code_machine", 3, "report1")

Documentation reference: https://web.archive.org/web/20140321115705/http://msdn.microsoft.com/en-us/library/ms226106(v=vs.80).aspx

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top