Error Enum

Stimulsoft Reports.WEB discussion
Post Reply
Tânia
Posts: 34
Joined: Thu Jun 13, 2013 12:22 pm

Error Enum

Post by Tânia »

Hello,

My class has an enum property, but when viewing the report an error occurs.
"The type or namespace name 'MvcDesigner_VS2012' could not be found (are you missing a using directive or an assembly reference?)"
Can I have my enum properties?

Attached the project simulating the error, if the last line of comment HomeController.cs file to give error.
public TestTaniaEnum TestEnum {get; Set;}

Another question, when working using:

  report.RegData ("test", list);
  report.Dictionary.Synchronize ();

or

report.RegBusinessObject ("Test", list);
report.Dictionary.SynchronizeBusinessObjects (3);

Do not use datatable, dataset, xml, reports, only DTOs that are used to carry my "business objects".

But I saw that report.RegData ("test", list); works correctly. How best to use? when using Regdata () and when using the RegBusinessObject ().


Thank you in advance,
Tania
Attachments
MvcDesigner VS2012.rar
Project with the simulation error
(13.59 MiB) Downloaded 191 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Error Enum

Post by HighAley »

Hello.

While there are data from Business Object in your report template, you should add the MvcDesigner VS2012.dll assembly to the Referenced Assemblies property of the report.

The RegData() method converts the business objects to Data Tables with relations. It's better to use RegBusinessObject method.

Thank you.
Tânia
Posts: 34
Joined: Thu Jun 13, 2013 12:22 pm

Re: Error Enum

Post by Tânia »

Thank you, Aleksey. Now is working!
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: Error Enum

Post by Andrew »

Hello,

We are always glad to help you!
Post Reply