pui.download Question
Posted: Wed Aug 20, 2014 10:01 am
I am currently using the pui.download API along with the PUIDNLEXIT program to generate a PDF of a spool file for the user to display. It is working famously!
I have been getting requests to display the spool file in a text mode so the user can copy/paste into EXCEL. I'm using the following for the API:
===================
pui.download({"id": "CPYSPLF" + padprtfile + padjobname + padusername + padjobnbr + padspoolnbr, "inline": true, "contentType": "application/pdf"});
===================
Is there an "application/text" for "contentType" or something similar? Would there be a better alternative to doing what I need to do? The user wants to display the report on the screen, copy the data he wants, then paste that data to EXCEL. He is used to copying and pasting from the green screen spool file display but the green screen is going away for them.
Thanks in advance....
I have been getting requests to display the spool file in a text mode so the user can copy/paste into EXCEL. I'm using the following for the API:
===================
pui.download({"id": "CPYSPLF" + padprtfile + padjobname + padusername + padjobnbr + padspoolnbr, "inline": true, "contentType": "application/pdf"});
===================
Is there an "application/text" for "contentType" or something similar? Would there be a better alternative to doing what I need to do? The user wants to display the report on the screen, copy the data he wants, then paste that data to EXCEL. He is used to copying and pasting from the green screen spool file display but the green screen is going away for them.
Thanks in advance....