Can I use VL to create a PDF report? We don't have Integrator (unless somehow that is included in VL).
I want to be able to create a fairly simple item report, with item, some text, and the item image. Basically a checklist of items in a shipment.
If so, is there a sample application that comes with VL? I've looked but no luck finding anything.
Then the trick is, how do I call that from an IBMi program?
PDF creation
Re: PDF creation
If you want to do it with VL, you can find sample programs to write to a word document or Excel, then do a save as a PDF. It works well.Fromm603 wrote: Sat Jul 20, 2019 5:18 am Can I use VL to create a PDF report? We don't have Integrator (unless somehow that is included in VL).
I want to be able to create a fairly simple item report, with item, some text, and the item image. Basically a checklist of items in a shipment.
If so, is there a sample application that comes with VL? I've looked but no luck finding anything.
Then the trick is, how do I call that from an IBMi program?
We did a spreadsheet with one line per inventory item. It has columns for price, qty on hand, description, etc, and then an image at the end of the row.
Art
Art Tostaine
- Stewart Marshall
- Posts: 417
- Joined: Thu Nov 05, 2015 5:25 pm
Re: PDF creation
Have a look at PDFMake.Org
I know of others who've wrapped this up in a widget and now produce some brilliant client side PDFs
I know of others who've wrapped this up in a widget and now produce some brilliant client side PDFs
Re: PDF creation
There is an example of producing client-side PDF files in the VLF-ONE shipped demonstration.
The example is made for VLF-ONE but most of the code could be used in any VL-Web application.
The main components are VL reusable part DF_T69H30 (Print Sample Invoice) and a VL widget named DF_T69CTO.
There is also a resource file named DF_PrintWidget.js in the VL-Web main folder.
If you don’t have VLF installed in your partition it’s pretty easy to do, just use the partition initialize option on the VL IDE logon screen and tick the VLF option.
The example is made for VLF-ONE but most of the code could be used in any VL-Web application.
The main components are VL reusable part DF_T69H30 (Print Sample Invoice) and a VL widget named DF_T69CTO.
There is also a resource file named DF_PrintWidget.js in the VL-Web main folder.
If you don’t have VLF installed in your partition it’s pretty easy to do, just use the partition initialize option on the VL IDE logon screen and tick the VLF option.
Re: PDF creation
I have tried to work with this a bit, and can get it to produce a "report", but it is not a PDF, but rather just an image?
Is there a setting or parm somewhere in the resource, widget, or RUP, where you can specify the output to be PDF?
Is there a setting or parm somewhere in the resource, widget, or RUP, where you can specify the output to be PDF?
Arlyn Dale
Servias LLC
Servias LLC
Re: PDF creation
It is a PDF.