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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.