Add map to report
Hi,
I would like to add a map to report.
But when I add the map, I get an exception that "Can't find object MapObject"
I would be happy for help on how to add a map
Thanks
This discussion has been closed.
Hi,
I would like to add a map to report.
But when I add the map, I get an exception that "Can't find object MapObject"
I would be happy for help on how to add a map
Thanks
Comments
Let me add more details.
I use the FastReport .Net Designer to add a Map Object, I did run the Preview and the map is shown well.
But when I tried to load the .frx file from my c# code it throw the "Can't find object" exception.
I tried to upgrade to the latest FastReport Nuget package but same issue persists.
Note that once I remove the Map object it back to working good, the .frx is well loaded to my c# code and all is working (without a map of course)
My c# code:
var report = new Report();
report.Load(GetFrx(type));
Exception details:
Source: FastReport
Message: Can't find object MapObject
Stack Trace:
at FastReport.Utils.FRReader.Read()
at FastReport.Base.DeserializeSubItems(FRReader reader)
at FastReport.Base.Deserialize(FRReader reader)
at FastReport.ReportComponentBase.Deserialize(FRReader reader)
at FastReport.Utils.FRReader.Read()
at FastReport.Base.DeserializeSubItems(FRReader reader)
at FastReport.Base.Deserialize(FRReader reader)
at FastReport.Utils.FRReader.Read()
at FastReport.Base.DeserializeSubItems(FRReader reader)
at FastReport.Base.Deserialize(FRReader reader)
at FastReport.Report.Deserialize(FRReader reader)
at FastReport.Utils.FRReader.Read(IFRSerializable obj)
at FastReport.Report.Load(Stream stream)
Hello!
In FastReport.OpenSource (2027.1.0), the MapObject is missing, whereas in the commercial FastReport.Net / FastReport.Core (which you can test using the demo packages from the nuget.org package repository) 2027.1.0, the MapObject is built-in and comes pre-loaded.