Currently, xlsxAddImage takes the following arguments:
imageNameOrOptions, sheet id, column from, row from, column to, row to.
This is similar to Excel's "Place in cell" option for inserting images.
This forces cells to be sized to a specific size so the image doesn't become distorted.
An option similar to Excel's "Place over cells" for inserting images would be very useful, passing the following arguments:
column from, row from, image width, image height
or
image left, image top, image width, image height
Regards, Pablo
Posts made by Pablo Hach
-
RE: xlsxAddImage dimensionsposted in general forum
-
xlsxAddImage dimensionsposted in general forum
Hello,
Is it planned for future versions of xlsxAddImage to support specifying a height and width instead of a cell range?
Thank you -
jsreport-core and custom extensionposted in general forum
I have created a custom extension,
the extension is located in the "extensions/entities" directory.
When i useimport JsReport from 'jsreport'jsreport finds it automatically, but when I use
jsreport = require('@jsreport/jsreport-core')(jsReportCfg)i can load another extensions with
jsreport.use(require('@jsreport/jsreport-assets')())but I can't find a way to load my custom extension.
I hope you can help me with this, thank you very much!!
Regards, Pablo
-
RE: is it possible to create my own collections in documentStoreposted in general forum
Thank you so much!!!
-
is it possible to create my own collections in documentStoreposted in general forum
is it possible to create my own collections in documentStore?
if not, It is possible to use the connection that jsreport creates with mongo?
I need to add collections
Thank you so much!!! -
RE: how to get the Location when sending parameter async=true in jsreport.render?posted in general forum
It worked! Thanks!
Pablo
-
how to get the Location when sending parameter async=true in jsreport.render?posted in general forum
When I sent this request
const result = await jsreport.render({ template: { name: '/generic/generic-report', recipe: 'chrome-pdf' }, options: {reports: { save: true, async: true }} })I do not get Location or a report id (to manually generate location), only result.content has the string "Async rendering in progress."
Any ideas?- How to get the Location or the generated id?
- Send as parameter an id generated by me? How would you send it?
Thank you so much!!!
-
RE: Passing beforeRender funtion in templateposted in general forum
Thank you!!!
Sorry, I didn't see it in the docs.
Pablo -
Passing beforeRender funtion in templateposted in general forum
Hello,
is it possible to send a "beforeRender" function as parameter in jsreport.render template?
I put it in helpers but it didn't work.const helpers = "function beforeRender(req, res) { console.log('beforeRender from helper !!!!!!!!!!!!!!!!!!!!!!!!!!'); return; } " const result = await jsreport.render({ template: { name: '/generic/generic-report', recipe: 'chrome-pdf', content: template, helpers: helpers }, })Thank you so much!!!