Playing around with Jasper Reports, very powerfull ReportServer...awesome reports.
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:
Import Document from URL &hilit=curl#p47329
The process looks like this:
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>>'
SystemSettings.SpecialDQ= " (double quotes)
Looking in Log Viewer I see:
- the generated URL = is correct
- The "EXECUTE PROGRAM" does generates the command correctly
- 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,