1. mathews rutto
  2. SnapDevelop
  3. Sunday, 2 October 2022 08:29 AM UTC

Hi, is there away i can generate PDF from C# API Rest call?

PowerObject ! Accepted Answer Pending Moderation
  1. Sunday, 9 October 2022 21:31 PM UTC
  2. SnapDevelop
  3. # 1

If you can format the REST data using HTML, you could use HTML2PDF library to export as PDF.

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 4 October 2022 19:14 PM UTC
  2. SnapDevelop
  3. # 2

The company I work at has a method for generating PDF files from a DataWindow report from a C# web app. I can tell you about it if you contact me directly. Roland@topwizprogramming.com

Comment
  1. mathews rutto
  2. Friday, 7 October 2022 06:18 AM UTC
Thank you
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Sunday, 2 October 2022 15:45 PM UTC
  2. SnapDevelop
  3. # 3

The .NET DataStore doesn’t have any visual formatting so doesn’t make sense to directly save its output to PDF.  So I would suggest either load the data from Web API in a PowerScript DataWindow and SaveAs PDF on the client side.  If you want to do on server side you will need to develop yourself the formatting and use a third-part PDF generator.  

Comment
  1. mathews rutto
  2. Monday, 3 October 2022 05:42 AM UTC
Thank you, i think i will try the above suggestion.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.