I'm trying to follow the info on this page: https://docs.telerik.com/reporting/programmatic-exporting-report. However it doesn't show what the TypeName should be. I've tried many variations from other examples but I always get this error when the RenderReport line tries to execute:
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: type
var PDFSource =
new
TypeReportSource();
PDFSource.TypeName =
"rptVAC"
;
var ReportProcessor =
new
ReportProcessor();
PDFSource.Parameters.Add(
new
Telerik.Reporting.Parameter(
"VACId"
, vacId));
var result = ReportProcessor.RenderReport(
"PDF"
, PDFSource,
null
);