This is a migrated thread and some comments may be shown as answers.

Generate PDF from Telerik Report template in Xamarin

1 Answer 643 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 26 Aug 2015, 11:17 PM

Can I use just the parts of Telerik Reporting necessary to open a Telerik Reports template, fill it with data, and export it to a PDF in Xamarin Cross-Platform?  I don't need a report viewer to render the report on the mobile platforms, or any other reporting functionality.

More info - I have people filling out forms on the web and on mobile devices.  The forms have a standard printout but each section can expand so I can't use PDF forms directly. instead I used Telerik Reports on the web platform to generate pdf files with expandable sections (and unknown page counts).  Now I need to generate those on the mobile platforms (Android, iOS, and soon Windows Universal).  However, these have to work offline so I can't generate the PDFs via a web service.

Thanks,

John H.

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 28 Aug 2015, 03:12 PM
Hello John,

In general, to export a report to PDF you need to reference the Telerik.Reporting library in your project and use the Exporting Report Programmatically code.
The required library is not available as a portable library or as a linked source, so the only option is to render the reports to PDF via a service.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Teck Yeong
Top achievements
Rank 1
commented on 28 Jun 2021, 04:22 AM

Is there any new updates now which can support render the report for Xamarin Forms application which run offline in windows/android?
Neli
Telerik team
commented on 30 Jun 2021, 02:50 PM

Hi Teck,

If you would like to display reports in a Xamarin form, you might test wrapping one of our existing viewers into Xamarin Forms Container class. We do not offer a dedicated Xamarin report viewer and, honestly, we haven't tested if it is possible to use our reporting solution in Xamarin form.

Note that there is a request for a similar feature in our feedback portal - Telerik report render and print into telerik xamrin forms. I suggest to vote for it and thus to increase its priority.

You can test to use Xamarin.Forms WebView. For example:

 <StackLayout x:Name="WebViewLayout" VerticalOptions="FillAndExpand">
     <WebView Source="https://demos.telerik.com/reporting/demos" VerticalOptions = "FillAndExpand"/>
 </StackLayout>

A similar approach is demonstrated in How to integrate Telerik Reporting in UWP application KB article.

Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or