Page 1 of 1

Error Enum

Posted: Sat Mar 22, 2014 5:47 am
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

Re: Error Enum

Posted: Mon Mar 24, 2014 11:43 am
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.

Re: Error Enum

Posted: Tue Mar 25, 2014 1:30 am
by Tânia
Thank you, Aleksey. Now is working!

Re: Error Enum

Posted: Tue Mar 25, 2014 5:31 am
by Andrew
Hello,

We are always glad to help you!