Does telerik reporting work in Mono?

47 posts, 0 answers
  1. vinay
    vinay avatar
    1 posts
    Member since:
    Apr 2009

    Posted 29 Apr 2009 Link to this post

    Hi,

    I am trying to port my web application into Mono(Linux).
    My database will be MySQL / SQLServer 2005.
    Please let me know does telerik reporting supports this requirement or not?.

    Thanks in Advance
    Viny


  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 29 Apr 2009 Link to this post

    Hi Viny,

    To be honest, we have not tested Telerik Reporting under Mono, but we do not believe that it would work as we’re a multi-platform product (web and win) and have multiple dependencies (including OS ones), unlike the ASP.NET controls which require a browser and simulation of the .NET runtime only.
    We’ve currently got a lot of other things on our hands, so support for Mono for Telerik Reporting is currently with low priority on our list.

    Best wishes,
    Steve
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. Christopher Bishop
    Christopher Bishop avatar
    50 posts
    Member since:
    May 2008

    Posted 02 Jun 2009 Link to this post

    If you are going to linux you are better off rewriting your application in php. "Websites" built on top of mono tend to be slower than when on MS and like Steve points out if you have DLL files that work with other OS related stuff they will not work on mono it is more of a pain than anything.
  5. Rav
    Rav avatar
    36 posts
    Member since:
    Nov 2011

    Posted 12 Apr 2012 Link to this post

    hi, is there any update on the compatibility of Telerik Reporting with Mono?
  6. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 12 Apr 2012 Link to this post

    Hello,

    Nothing has changed since last post. In fact now we support two more platforms (Silverlight and WPF), which makes it even more questionable whether we would be able to work on Mono in the near future.

    Greetings,
    Steve
    the Telerik team
    NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
  7. Igor
    Igor avatar
    145 posts
    Member since:
    Jan 2011

    Posted 20 Apr 2012 Link to this post

    Hi!

    I am trying to run Telerik Reporting Q1 2012 under Mono 2.10 + ASP .NET MVC and was unsuccessfull so far :(
    For me it related to this bug in Mono: http://lists.ximian.com/pipermail/mono-bugs/2010-March/098641.html 
    because Reporting uses RegionInfo class to get current region and it might be NULL in Mono.

    I am digging into it now and will let you know if any progress

  8. Igor
    Igor avatar
    145 posts
    Member since:
    Jan 2011

    Posted 21 Apr 2012 Link to this post

    Finally i got it worked with some workadounds (removing RegionInfo from sources and rebuilding them on Mono 2.10 under Debian)!
    It now works in my ASP .NET MVC2 project well. If someone wants - i can share the complete solution.
  9. Igor
    Igor avatar
    145 posts
    Member since:
    Jan 2011

    Posted 21 Apr 2012 Link to this post

    Guys! Your product is amazing!
  10. Rav
    Rav avatar
    36 posts
    Member since:
    Nov 2011

    Posted 21 Apr 2012 Link to this post

    Hi Igor

    I would really appreciate if you could send me that solution!

    My email is rav@risetechnology.com.au

    Rav
  11. Igor
    Igor avatar
    145 posts
    Member since:
    Jan 2011

    Posted 22 Apr 2012 Link to this post

    Hi, Rav!

    let me post it here instead.
    i will do it in few hrs

    upd: one problem i found while testing - is that Charts are partially workable in the Reports. This issue is related to some unsupported methods of Graphics class in Mono.
  12. Vassil Petev
    Admin
    Vassil Petev avatar
    1765 posts

    Posted 23 Apr 2012 Link to this post

    These are exciting news, Igor! It seems you are on the verge of making Telerik Reporting work under Mono. We welcome this idea and your enthusiasm.

    We would like to assist you with any information and/or core changes you may need. Built-in support for Mono has always been with lower priority in our plans, but with your help we may be able to help the Mono community sooner than we thought.

    Please, send us any questions you may have and we will try to address them. We would also like to get a list of changes you have made (and which you plan to make) to the source which allowed you to run Telerik Reporting under Mono. We would like to review these and find a way to include them in Telerik Reporting. Feel free to open a new support ticket in order to send us your project (unfortunately, sharing the source code of the product is not allowed publicly in the Forums, thus the request). We are ready to offer you a complimentary extension of your subscription for helping us with this project. How does this sound?

    We are excited by this opportunity!
     
     
    All the best,
    Vassil Petev
    the Telerik team

    BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

  13. Igor
    Igor avatar
    145 posts
    Member since:
    Jan 2011

    Posted 23 Apr 2012 Link to this post

    Vassil ,
    sounds good, thanks!

    so let me go over my changes..
    i worked with Q1 2012 6.0.12.215 sources of Telerik Reporting; i was able to build them under MonoDevelop 2.8.8.4 with platform target Mono 2.10.8.

    First thing as i mentioned before (server exception 500 error) is related to RegionInfo.CurrentRegion
    http://lists.ximian.com/pipermail/mono-bugs/2010-March/098641.html 

    Workaround: 
    CultureInfo ci = CultureInfo.CurrentCulture;
     // If current culture is invariant then region is not available.
    if (ci != null && CultureInfo.BootstrapCultureID != 0x7F)
     currentRegion = new RegionInfo(CultureInfo.BootstrapCultureID);

    so the best way - is to add a static variable currentRegion and replace all occurences of accessing property RegionInfo.CurrentRegion:
    • Telerik.Reporting\Drawing\PageSettings.cs line 261
    • Telerik.Reporting\Drawing\Unit.cs line 145
    • Telerik.Reporting\Report.cs line 115
    • Telerik.Reporting\ReportSectionBase.cs line 16
    • Telerik.Reporting.Pdf\PdfPageDictionary.cs line 23 
    • Telerik.Reporting.Pdf\PdfPageDictionary.cs line 43
    (WinForms related sources are ommited)

    Open  Telerik.Reporting.Processing\ExtensionManager.cs locate #if DEBUG directive (line 12) which contains extension types
     replace the  #else section with it so you should have:
    static readonly string[] extTypes = new string[]
    {
       "Telerik.Reporting.ImageRendering.ImageReport,              Telerik.Reporting.ImageRendering" + currentVersion
    //... etc

    Method GetExtensionTypes must be replaced as well:

    static IEnumerable<string> GetExtensionTypes()
    {
       return extTypes;
    }

    Put all compiled assemblies together (why dont XCOPY to some common build output directory) and change references from Telerik.Reporting GAC to the local assemblies named Telerik.Reporting.XXXXX. 
    Remember, when you do this - you not able to open report with Visual Studio designer, so it would be better to have reports in different Class Libraries which are references to the GAC version of Telerik.Reporting assembly.

    Last thing - in order to use ASP .NET MVC application, you should ignore ASPX and AXD in global.asax.cs:
    public static void RegisterRoutes(RouteCollection routes)
    {
       routes.IgnoreRoute("{*allaspx}", new { allaspx = @".*\.aspx(/.*)?" });
       routes.IgnoreRoute("{*allaxd}", new { allaxd = @".*\.axd(/.*)?" });

    Do it because you have HTTP handler registration of the Telerik Reporting in web.config
    <add name="Telerik.ReportViewer.axd_*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />


    The example which works for me on Mono, Debian ASP .NET MVC Project created with VS 2010:
    http://www.4shared.com/zip/ApvtTmW2/Report.html
    I removed all pre-compiled Telerik assemblies, so you should build them from scratch, using my post.

    Right now i am trying to get Charts working with Mono, but due to some non-implemented things in System.Graphics  class it does not work as expected. Mono has its own GDI+ implementation (libgdiplus, http://www.mono-project.com/Libgdiplus) and should work fine in most (but not 100%) cases.

    For example one of the problem i found so far  - Telerik.Charting\ChartGraphics.cs has methods EnumerateMetafile with overrides:
    public void EnumerateMetafile(Metafile metafile, Point destPoint, Graphics.EnumerateMetafileProc callback)
           {
               chartGraphicsGraphics.EnumerateMetafile(metafile, destPoint, callback);
           }
    It will throw exception on Mono (Not implemented). Not sure if this method (or it overrides) are really in use somewhere in Telerik code?
    I just found this problem with Mono Migration Analyzer http://www.mono-project.com/MoMA 

    I am still digging into it and trying to get Charts working with Mono as well. Will let you know about my progress!

    p.s. How do i attach ZIP files? i believe i was able to do it before...
  14. Vassil Petev
    Admin
    Vassil Petev avatar
    1765 posts

    Posted 27 Apr 2012 Link to this post

    Hi Igor,

    Excellent, thank you for this information. I have forwarded it to our developers for review and testing. Hopefully you will manage to get the chart problem fixed.

    You can send us the project in a new support ticket.

    Thanks again! Keep us updated.


    All the best,
    Vassil Petev
    the Telerik team

    BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

  15. Igor
    Igor avatar
    145 posts
    Member since:
    Jan 2011

    Posted 27 Apr 2012 Link to this post

    Vassil,
    i am working with another project now and had no chances to figure out any workarounds on the chart problem.
    I will keep you guys informed about my progress. 
  16. Igor
    Igor avatar
    145 posts
    Member since:
    Jan 2011

    Posted 13 May 2012 Link to this post

    Hi guys!
    Any progress with the mono?

    I am going to work on the chart problem 
  17. Frederic
    Frederic avatar
    5 posts
    Member since:
    May 2011

    Posted 16 Nov 2012 Link to this post

    Hello,
    I'm also interested by having reporting working under mono.
    Can you tell me if the patches suggested by Igor have been merged in the latest code release (Q3 2012) ?

    Thanks
  18. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 20 Nov 2012 Link to this post

    Hi Frederic,

    Igor has not sent any project or feedback after the last post and we have not made any changes on our end yet.

    Greetings,
    Steve
    the Telerik team

    HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

  19. Igor
    Igor avatar
    145 posts
    Member since:
    Jan 2011

    Posted 14 Dec 2012 Link to this post

    Hi!

    Sorry for delays, i have high load on another project and unable to review Reporting solution for Mono.
    Did you apply anything from my post Apr 23, 2012? Vassil told he forwarded it to the Developers team.
    According to the changes i made, the only problem for Mono persists - with Charts.
    Will try to review it in the future against the latest Telerik Reports and Mono version.
  20. Frederic
    Frederic avatar
    5 posts
    Member since:
    May 2011

    Posted 14 Dec 2012 Link to this post

    Hello,

    From my side, I tried applying a patch similar as your description, but I did not succeeded in having it running under Mono. It was returning blank pdf.
    I had to implement the report generation on a windows server with a proxying for the mono machine...
  21. Igor
    Igor avatar
    145 posts
    Member since:
    Jan 2011

    Posted 14 Dec 2012 Link to this post

    Frederic
    i am not sure but it's possible due to version mismatch,
    notice that i built the sources with MonoDevelop.
  22. Frederic
    Frederic avatar
    5 posts
    Member since:
    May 2011

    Posted 14 Dec 2012 Link to this post

    Hi Igor,

    Even if I did a work-around for now, I'm still interested in having the reporting under Mono. If you have a compiled dll, I can test it with my application and provide feedback.

    Best regards

    Frederic
  23. Igor
    Igor avatar
    145 posts
    Member since:
    Jan 2011

    Posted 14 Dec 2012 Link to this post

    Frederic, unfortunately i dont have them for now. I did same workaround on Windows as you mentioned (because of charts WMF problem on Mono). But i am interested to have the Telerik Reporting solution running on Mono too, and i will try to work on it using the latest versions of Mono and Telerik Reports very soon. Will keep this topic updated with my results. Please do the same if its possible ;)
  24. Rav
    Rav avatar
    36 posts
    Member since:
    Nov 2011

    Posted 13 Apr 2013 Link to this post

    Hi

    Has there been any update on this (Telerik Reporting in Mono)? I'm also very keen to get this happening, actually I don't care so much about the report viewer, I just want to have a report generator service which can run on Linux OS.

    Any assistance would be appreciated.

    Rav
  25. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 17 Apr 2013 Link to this post

    Hello Rav,

    Currently Telerik Reporting does not support Mono and since the last update by Igor there is no change and it is not in our short plans to revise this possibility.

    If there is any chance it will be announce through our official channels, meanwhile if anyone has some update on this we will be glad to check it.

    Kind regards,
    Stef
    the Telerik team

    Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

  26. Igor
    Igor avatar
    145 posts
    Member since:
    Jan 2011

    Posted 17 Apr 2013 Link to this post

    Hi guys!

    I am overloaded with my project with a different tasks right now and extremely sorry that i have no time to complete that Mono support.
    It is anyway in my TODO list, and i will re-visit it for sure next month.

    If someone could help me with it - i kindly ask to provide some tests with WMF graphics inside Telerik Reports under Mono (since there was a problem with GDI+ support on Mono for WMF/EMF format).
  27. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 18 Apr 2013 Link to this post

    Hi Igor,

    We can suggest to test with the latest release of Telerik Reporting Q1 2013 and the newly introduced Graph item for charts.

    Kind regards,
    Stef
    the Telerik team

    Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

  28. Andrey
    Andrey avatar
    5 posts
    Member since:
    Jul 2012

    Posted 06 May 2013 Link to this post

    Hi Stef.
    Rav ask me to test latest telerik reporting with latest mono.
    I've build mono from sources and tested some basic functionality.
    For build latest mono in ubuntu/lubuntu 12.10 you can use this script: https://github.com/jvlppm/build_monodevelop/
    Also for run my project you need to build xsp. For doing that you only need to add this line to script: install xsp

    I've written mvc project that can generate report on server side and save report as file.
    I've tested on simple report, that contains only text. Exporting to pdf not working, but export to MHTML, RTF, HTML working fine.
    You can find code here mvc2.zip.
    For testing you can change format in ReportHelper class:
    var pdf = reportProcessor.RenderReport("PDF", instanceReportSource, null);

    To run project you need to open solution in monodevelop and run solution. Navigate in browser to http://127.0.0.1:8080/home/exportpdf
    File should be saved to App_Data/Reports

    I've tested more complex reports, but mono crushed.

    I hope with sources you can find why export to pdf not working and maybe make possible to create more complex reports.

    P.S. I can share with you copy of my virtual machine with configured mono and mono develop.
    P.P.S. in virtual environment lubuntu working faster than ubuntu and fully compatible with ubuntu.



  29. Igor
    Igor avatar
    145 posts
    Member since:
    Jan 2011

    Posted 06 May 2013 Link to this post

    Hi Andrey!
    The problem you faced with - is related to the GDI+ partial implementation in Mono. PDF generation, as well as Graph, uses in-memory GDI+ WMF routine to make a drawing.

    See this topic of gdiplus library http://wiki.winehq.org/GdiPlus (Metafile handling (WMF, EMF, EMF+) is not really implemented)
    Here is the link to svn repository (which is not available at the moment) of Mono implementation http://www.mono-project.com/Libgdiplus
  30. Andrey
    Andrey avatar
    5 posts
    Member since:
    Jul 2012

    Posted 06 May 2013 Link to this post

    Hi Igor.
    They migrate to git: https://github.com/mono/libgdiplus
  31. Igor
    Igor avatar
    145 posts
    Member since:
    Jan 2011

    Posted 06 May 2013 Link to this post

    hi Andrey :)
    great news! i didnt know that. have you tried this one with your Mono?
Back to Top
DevCraft banner