Creating reports and dashboards | Stimulsoft community forum
Reporting tool and data analytics tools for creating reports and dashboards in ASP.NET, ASP.NET MVC, .NET Core, Blazor, Angular, PHP, Python, WPF, JavaScript, and Java applications.
c:\Documents and Settings\Hussam\Local Settings\Temp\ljixkzlx.0.cs(282,28) : error CS0246: The type or namespace name 'TestProject' could not be found (are you missing a using directive or an assembly reference?)
You have to add the assembly to the reference list, where your Class1 is defined:
// Get the existing references defined in the report
string[] references = stiReport.ReferencedAssemblies;
// Converting the the array to a collection
List newReferences = references.ToList();
// Add your Assembly to the list
newReferences.Add("WindowsFormsApplication1");
// Reset the array of referenced assembly with the converted collection
report.ReferencedAssemblies = newReferences.ToArray();
Also you can try to add your custom namespaces directly in the Designer.
Just select report object in the Property Editor and then add all references to ReferencedAssemblies property. Also please be sure that your assemblies have been placed in the same folder as our dlls.
If the issue is still there then please send the sample project to support[at]stimulsoft.com.
> I am trying stimulsoft reports to find out if it meets my company
> needs .. our programs depends on bindinglist as a data store ...
> so when I tried your product and passed a bindinglist to the report
> it showed an exception ....
> in the attachment you will see a sample project , I wish you can tell
> me what wrong ...
You need make two corrections in your report:
You have used following code in using section:
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;
using TestProject
Please set symbol ";" after "TestProject". Correct code is:
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;
using TestProject;
Second correction in text component DataClass1_Type_TypeName.
Expression {Class1.} is not correct. You need add column name.