Starting in 2019, the Reporting control is no longer included in Essential Studio®. If you're experiencing issues with the Syncfusion� Reporting Platform, Report Viewer, Report Designer, or Report Writer, we recommend migrating to Bold Reports, our dedicated reporting platform.

Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.

We thank you for choosing Syncfusion� and appreciate your understanding.

Report as Resource

Hi alltogheter,
this is my *.csproj

<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>ErpDach.Modules.Main</RootNamespace>
<UseWPF>true</UseWPF>
<AssemblyName>ErpDach.Modules.Projects</AssemblyName>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>......\Bin\Debug\Modules\</OutputPath>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
</PropertyGroup>
<ItemGroup>
<None Remove="Reports\ProjectHeaderRDLC.rdlc" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Reports\ProjectHeaderRDLC.rdlc">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<PackageReference Include="FluentValidation" Version="9.4.0" />
<PackageReference Include="Prism.Wpf" Version="7.2.0.1422" />
<PackageReference Include="Syncfusion.SfGrid.WPF" Version="18.3.0.52" />
<PackageReference Include="Syncfusion.Tools.WPF" Version="18.3.0.52" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="....\Backend\ErpDach.Repository\ErpDach.Repository.csproj" />
<ProjectReference Include="....\Base\ErpDach.Base\ErpDach.Base.csproj" />
</ItemGroup>
</Project>
How do i acceess the Resource 'ProjectHeaderRDLC.rdlc' in Code?


var resourceName = 'ErpDach.Modules.Projects.Reports.ProjectHeaderRDLC.rdlc'

var assembly = Assembly.GetExecutingAssembly();
var x = assembly.GetManifestResourceStream(resourceName);

is not working. I have no idea what i'm making wrong
Thanks
Peter


1 Reply 1 reply marked as answer

MS Mahendran Shanmugam Syncfusion Team February 9, 2021 05:10 AM UTC

Hi Forstmeler,  

We suspect the mentioned issue occurs when the file having restriction to coping the file from folder to output directory. Could you please ensure that file having option for copy to output directory as shown in below help documentation. 

If still issue occurs after changes the above changes then could you please provide your application to validate the mentioned problem at our end. 

Regards,  
Mahendran S.  


Marked as answer
Loader.
Up arrow icon