I am trying to print directly to a printer using the code listed here. However I need to pass parameters to my report. Is there a way to do that when trying to print directly?
2 Answers, 1 is accepted
0
Stef
Telerik team
answered on 28 Apr 2015, 02:48 PM
Hi Jonah,
You can send values to report parameters through the wrapping report source object. the ReportSource.Parameters collection is mapped by key to the report's ReportParameters collection. The key is the parameter's name which is case sensitive.
Thank you for the response. I was able to get this figured out, and here is a little bit of code if anyone else stumbles on either the report name or the parameters.
Dim reportProcessor As New Telerik.Reporting.Processing.ReportProcessor()
'set any deviceInfo settings if necessary
Dim typeReportSource As New Telerik.Reporting.TypeReportSource()