Posted 12 October 2020, 7:07 pm EST
Hello
I have made a parametrized report with activereports and I embedded in a dll.
Everything it’s working fine with default values, but I doesn’t no know how to set the parameters value at runtime.
I have read the documentation, and I find the setParametersValues() function, para it ask me an Grapecity.Viewer.Common.iparameter interface, but I don’t know the class that implements this interface.
Could you help me please.
This is the method I’m using to load de report.
Thanks
public void CargarReport(string reporte,string ensamblado)
{
Assembly assembly=string.IsNullOrEmpty(ensamblado)? Assembly.GetExecutingAssembly(): Assembly.LoadFrom(ensamblado);
stream = assembly.GetManifestResourceStream(reporte);
viewer1.LoadDocument(stream, GrapeCity.Viewer.Common.DocumentFormat.Rdlx);
viewer1.SetParametersValues();
}