I manage to open the reports as PDF => this is ok
2.I want to achieve to import this PDF into a BO, so I use cURL like here:
http://www.awareim.com/forum/viewtopic. ... url#p47329
The process looks like this:
Code: Select all
CREATE MyTokens WITH MyTokens.CompanyOwner=Offers.CompanyOwner,MyTokens.ObjectID=Offers.ID
Offers.PDF_path=Offers.CompanyOwner.DocsPath+'\Offer--'+Offers.ID+'.pdf'
MyTokens.URL=SystemsSettings.Jasper_Server_PAth+Offers.ID+'&webToken='+MyTokens.webToken
EXECUTE PROGRAM '<<SystemSettings.curl_install_path>>\curl.exe -o <<Offers.PDF_path>> <<SystemSettings.SpecialDQ>><<MyTokens.URL>><<SystemSettings.SpecialDQ>>'
Looking in Log Viewer I see:
1. the generated URL = is correct
2. The "EXECUTE PROGRAM" does generates the command correctly
3. BUT the result is an empty PDF.
IF I execute manually from CMD (command prompt) the CURL command generated by "EXECUTE PROGRAM" ------> it appears a correct PDF file with desired data.
Any advice would be highly appreciated!!!!
Thx,