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

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)

Leave a Comment