FastReport icon indicating copy to clipboard operation
FastReport copied to clipboard

Xamarin support

Open fredericoregateiro opened this issue 5 years ago • 9 comments

I tried this on Xamarin and i got a not supported platform exeception. Will Xamarin be supported?

fredericoregateiro avatar Feb 21 '20 01:02 fredericoregateiro

I was wondering that too

elbeshenrique avatar Feb 27 '20 18:02 elbeshenrique

Any news about this situation?

JulianoBazzi avatar Jun 12 '20 18:06 JulianoBazzi

Xamarin is still not supported. :( :( :( #103

FR is heavily dependent on the use of System.Drawing, mainly text measures and image sizes.

So far, because of the Enteriprise, I don’t think that the FR.Net team will replace System.Drawing with something else. I really hoped for Microsoft, but in Core 3 and in Net 5 System.Drawing is not become part of the xamarin platform.

Detrav avatar Jun 15 '20 08:06 Detrav

@Detrav hello there is a new release with .net 5 RC, did you try it ? 👍

psohm avatar Sep 24 '20 20:09 psohm

Yes, I tested it, there is no news, in general FR works on net 5 rc.1, but System.Drawing.Common is still not available.

I have ideas for moving the graphics engine into a separate module, this will allow drawing reports on android, ios, wasm (e.g. skiasharp). But this is not a priority for the FR.Net team yet… As far as I know.

There are several limitations why reporting on mobile is bad:

  1. This is downloading data from DB, it is not safe.
  2. Resources for building a report. No matter how quickly it is built, it all the same eats memory. 300mb-1gb medium to large report.
  3. It is aesthetically wrong to build a report on the user's phone.
  4. The battery will be discharged.

A good solution is to build a report on the server. And make a mobile application through api.

The full version of FastReport has svg export, which looks good on the phone. For OpenSource, this is the html version and the web report.

But I'm still in favor of the graphics engine separation! :)

Detrav avatar Sep 25 '20 10:09 Detrav

@Detrav hello, there is a new beta version of .net core 6 can you look after ? :)

psohm avatar Feb 19 '21 12:02 psohm

Quite a bit watching the news, haven't tested anything yet. I will text with the result, maybe skip preview 1.

Detrav avatar Feb 19 '21 12:02 Detrav

  1. This is downloading data from DB, it is not safe.
  2. Resources for building a report. No matter how quickly it is built, it all the same eats memory. 300mb-1gb medium to large report.
  3. It is aesthetically wrong to build a report on the user's phone.
  4. The battery will be discharged.

While I generally agree with you, there are more use cases than just classic database reporting. For example, we have an application that ships with reports that are prebuilt by the developers and baked into the executable. At runtime they are populated with locally-available data. We use this for example to insert names and addresses into forms that then get printed and completed by hand or for invoices. This eliminates at least points 1 and 3.

~~Regarding the missing System.Drawing, Microsoft has released a NuGet package called System.Drawing.Common that makes most of System.Drawing available cross-platform. I've never tried it in Xamarin but generally it should work.~~ Edit: System.Drawing.Common still doesn't work on Xamarin.

dfyx avatar Mar 17 '21 16:03 dfyx

Hello @Detrav, are there any news about this? Any plans to migrate from System.Drawing to something else (Microsoft.Maui.Graphics or Skia directly)?

devjama avatar Jul 11 '22 14:07 devjama

@devjama hello! I've just found out that commercial version of FastReport now support Skia (see https://www.fast-report.com/en/news/show/fastreport-net-2022.3/)

SLenik avatar Dec 09 '22 21:12 SLenik

At the moment, the team has no plans to add Skia support to FastReport Open Source. But you can use Skia support in the paid version which will allow you to use Xamarin. Read about all the advantages of Skia in this article: https://www.fast-report.com/en/blog/show/fastreport-core-skia/

alexsherkhan avatar Dec 12 '22 08:12 alexsherkhan

does someone test it under mobile version with xamarin ?

psohm avatar Dec 12 '22 09:12 psohm

At the moment, since the team has not officially announced Xamarin support, the team cannot guarantee full Xamarin support. But I've been running tests on Android, and most likely Xamarin support will be announced later, perhaps even in the next minor release.

alexsherkhan avatar Dec 12 '22 09:12 alexsherkhan

any news on this enhancement ?

psohm avatar May 24 '23 20:05 psohm