I try to embed the .rdl file into the compiled .exe.
First i tried to use the SourceFile property, but i gave up on it, because i couldn't get a Uri for the resource file. Instead i used SourceRdl, which worked:
This works, the report shows up correctly in the viewer, i'm able to use the ViewerToolstrip's Save, to save out a pdf, etc.
But when i tried to Print() it, i got a NullReferenceException because i'm using SourceRdl. And if SourceRdl is set, SourceFile is null, but Print() tries to access 'SourceFile.LocalPath'
I try to embed the .rdl file into the compiled .exe.
First i tried to use the SourceFile property, but i gave up on it, because i couldn't get a Uri for the resource file. Instead i used SourceRdl, which worked:
This works, the report shows up correctly in the viewer, i'm able to use the ViewerToolstrip's Save, to save out a pdf, etc.
But when i tried to Print() it, i got a NullReferenceException because i'm using SourceRdl. And if SourceRdl is set, SourceFile is null, but Print() tries to access 'SourceFile.LocalPath'