Display .RDLC report embedded in a DLL file

前端 未结 3 1342
谎友^
谎友^ 2021-01-30 12:54

I have a report that is used by a windows service and a form application. So, I want to put embed the report in a DLL file that can be used by both.

The problem is that

3条回答
  •  失恋的感觉
    2021-01-30 13:42

    Just use the full namespace of the assembly, then folder names and then the name of the file:

    rv.LocalReport.ReportEmbeddedResource = 
        "My.Assembly.Namespace.Folder1.Folder2.MyReport.rdlc";
    

    Then make sure the report file is set as an embedded resource using the properties pane.

提交回复
热议问题