Thank you jan.
It's working great. :)
Thank you jan.
It's working great. :)
Dear jsReport Team,
landscaped
dynamically by the api call.What i did so far is hand over a variable from the document to the header:
Header:
<script>
window.JSREPORT_CHROME_PDF_OPTIONS = {
landscape: {{getOrientation this}}
}
</script>
function getOrientation(page){
return page.items[0]
}
Document:
{{{pdfAddPageItem true }}}
Of course this way the header is always landscaped. So I was searching for a document parameter to change true dynamically. I investigated @root
but there is only my data and
$resources,$resource,$localizedResources,$localizedResource,__appDirectory,__rootDirectory,__parentModuleDirectory
Thank you for any kind of workaround.
Cheers,
Claus
fyi: