Goal: I want to create a .NET Standard class library with trdx reports so that I can deploy it with projects on various platforms.
I added a trdx file to the new library and made it an embedded resource but could not access it. I then stepped back, simplified, and added the report to a .NET Framework 4.7 Windows Forms app, again as an embedded resource.
public Form1()
{
InitializeComponent();
var a = System.Reflection.Assembly
.GetExecutingAssembly()
.GetManifestResourceStream("Reports.Report1.trdx");
TypeReportSource reportSource = new TypeReportSource();
reportSource.TypeName = "Reports.Report1.trdx";
var reportProcessor = new ReportProcessor();
RenderingResult result = reportProcessor.RenderReport("PDF", reportSource, null);
}
a is populated (as a check) but rendering results in: {"Invalid report type"}