45
Views
4
Comments
How do I create a PDF and save to network drive?
Question
Application Type
Reactive
Service Studio Version
11.54.21 (Build 62708)

I have an app that needs to generate a PDF (an invoice) using data from an onsite database.  We need to:

1. Name the PDF based on a variable passed to the screen.

2. Save the PDF to two locations on the local network.  

I've tried multiple Forge Components, including FileSystem, PDF Convertor, Ultimate PDF and Reactive HTML2PDF, that seemed like they might do what I need but I can't get anything to work.

Is there anyone who could point me in the right direction?

2023-07-04 22-25-22
Mohamed Medhat

Hi @Donna Williams ,

I am using Ultimate PDF you can check this video https://www.youtube.com/watch?v=cGozdBMgOGE&t=275s on Youtube, which illustrate step by step creating and downloading pdf

If you want to save it 

1- store binary data in a database as binary (I Recommend this one)

2-  or you may need to create extension to send binary data to be saved in specific location

3- You can use on of the forge plugin to save files (e.g. FileSystem)

Best of luck


UserImage.jpg
Donna Williams

Thank you. I feel like using FileSystem is the way to go, but I have no idea how to implement it.

2023-07-04 22-25-22
Mohamed Medhat

What you can do is to install the component from forge and the demo as well, in the demo you will find a simple how to use the forge component.

https://www.outsystems.com/forge/component-overview/68/filesystem

click on the arrow down you will find 

2023-09-06 11-31-56
Hitesh Maran

Hi Mate, 

If you want to use File system then you can refer file system forge components. It has code and demo that you can try. 


Thanks,
Hitesh


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.