Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm using C# WPF in Visual Studio 2019 with these :

.NetFramework 4.7

Windows Server 2012

Stimulsoft

When I run this line of code when it reaches the report.Render() that will show this error :

  <pre lang="C#">//using Stimulsoft.Report;
        var report = new StiReport();
        report.Load(@"D:\Myreport1.mrt");
        report.Render();
        prtviewer2.Report = report;

Error : CS0246: The type or namespace name 'Stimulsoft' could not be found

more info : How to fix The type or namespace name 'Stimulsoft' could not be found in C# WPF - Stack Overflow[^]

What I have tried:

Changing Net Framework
Clean And Rebuild Solution
Delete And add Reference again into
Posted
Updated 4-Sep-21 0:01am

1 solution

C#
//using Stimulsoft.Report;

Your using statement has been commented out, so the compiler ignores it. Remove the double // at the beginning.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900