Hello, @admin, I'm just following up on this issue.
Posts made by lukuser
-
RE: issues representing docx table within "each" loop
-
issues representing docx table within "each" loop
Hello,
I'm trying to create a docx report with submarkets array, and a nested items array. I want each submarket to repeat a table of items. Here's a playground ilustrating my problem:
https://playground.jsreport.net/w/lukuser/cleGQAvm
Template V2 seems to represent tables for each 2 items one on top of another. While template V2.1 doesn't show any data. The difference between them is the location of the initial tag {{#each submarkets}}. In both templates the submarkets table seems to be correctly between {{#each submarkets}} tag and the closing {{/each}} tag, but in template V2 it is higher (under the black header).
-
RE: Error using xlsx: xlsxSData doesn't match each
I found the issue. I was missing the # on the opening each tag.
-
Error using xlsx: xlsxSData doesn't match each
I'm trying to use the xlsx helper, but I'm running into an error:
xlsxSData doesn't match each
My playground demonstrating the issue:
-
excel tables using html-to-xlsx?
Is there a way to create an excel table with html-to-xlsx?
-
calling function from shared script in report script
I have a folder-scope script file sharedhelpers.js shared by multiple reports. One of the reports has a script with beforeRender. How can I call a function defined in sharedhelpers.js from the report script's beforeRender()?
-
RE: Best way to implement a common header and footer for multiple reports
Thanks @msageryd, yes my header data is static within a given report template, but variable to the pdf-utils header, which is reusable in all reports. Adding the script where I set my repot title and other stuff worked the way you both suggested using BeforeRender. Thank you.
-
RE: Best way to implement a common header and footer for multiple reports
Hello, thanks for the replies. @msageryd the example you provided for now is a bit too advanced for me to fully comprehend without a playground example. As you can see in my playground example, my header doesn't seem to require a loop. @admin's solution does seem to work if I include the report header string in the json data. Trouble is it won't come with the data but rather each report has it "hardcoded". As I understand I can append these extra properties to the data at beforeRender, or try to implement global variables and read them in the header maybe. I found a forum article that suggests how global variables can be leveraged: https://forum.jsreport.net/topic/1850/helpers-use-top-level-variables-and-functions/3.
-
RE: Best way to implement a common header and footer for multiple reports
Hi @admin , please let me know if this is doable.
-
RE: Best way to implement a common header and footer for multiple reports
Thanks @admin, to be more precise, the header will have two logos (our and clients) on the left and right extremities, report title, which would have to be dynamically passed in from different report templates, and a color line on top. I already got the pdf-utils to work, except I can't figure out how to pass in the report title. Would you be able to help me with that? Here's my playground:
https://playground.jsreport.net/w/lukuser/rGuxQcvL. In this example the report title is hardcoded as "Report Title Here" but each report would have to pass in the correct title. -
Best way to implement a common header and footer for multiple reports
I'm getting into the pdf development now using the chrome-pdf and handlebars. I'd like to develop multiple reports with some common reusable elements, including a common header and footer. A header will have a standard logo and a report title (which would have to be dynamically passed to the header template). After looking at the documentation, there seems to be several ways this can be done:
Using pdf-utils header and footer, implements a separate template but it's integrated within one report. From there I suppose I could replace the default code by component? Then there are also ways to do this programmatically, child templates, sub-templates (https://jsreport.net/learn/jsrender#sub-templates), layouting... Which way would be the best?
-
pptx image aspect ratio
My template has a center image holder. Is there a way to have the image keep its aspect ratio and be contained within (in the center of) the image shape boundry? I tried usePlaceholderSize= true but then the image is stretched. Itried using just the height, but then if the image is bigger than the page, it falls off the page (even height-wise) no matter what the height value is. Or if the image is smaller than the container , it get's aligned in the upper left corner of the container instead of in the center...
-
paginating multi-level data in pptx helper
Hello, I'm trying to paginate an inner data object represented by the suites table on the playground example. The max lines on that table can be max of 3. Is there a way to repeat a building record with remaining suites if there are more than 3 suites associated to a give building (as in building 432)? The overall max number of suites in a building can be upwards of 20 in production.
https://playground.jsreport.net/w/lukuser/mvDlWC1t.
I have seen a previous post discussing pagination here: https://forum.jsreport.net/post/12353, but I can't seem to be able to port this into a multilevel object structure like in the example.
-
RE: error when using pptxSlides helper with only one array element
Hello @bjrmatos, this is still not working. Was the fix released yet?
-
RE: error when using pptxSlides helper with only one array element
Thank you. @bjrmatos. I'll keep track of the releases to catch that one. Hopefully It'll be soon as our application relying on jsreports was in production when this happened. We'd have to write off a significant dev-time investment if we had to move on to another reporting solution now. For now we ask our users to select an extra record and the page is then discarded when the pptx is printed out...
-
error when using pptxSlides helper with only one array element
Hello,
pptx helper seems to fail when using pptxSlides helper with only one array element:
https://playground.jsreport.net/w/lukuser/UsE_lRgu
This used to work, but my templates started to fail since approx. last week..
This happened before too:
https://forum.jsreport.net/topic/3035/can-t-render-pptx-report-with-pptxslides-with-only-one-slide -
RE: error in all pptx templates in jsreport studio
Hi @admin, it works now. Thanks for the help.
-
RE: error in all pptx templates in jsreport studio
Hi @admin, no, I'm not behind a proxy. Your sample pptx previews fine, but none of my pptx files work.
jsreportonline version: 3.13.2
jsreport version: 3.13.0I tried another machine, another location (home vs work), same effect. I tried reuploading, but no change. Like I said, templates that used to work in preview/run now don't without changes. They all still work when rendered using API though.
-
error in all pptx templates in jsreport studio
Hello,
This morning all our templates pptx report an error when pressing "preview" in jsreport studio in the browser. These templates were previously working correctly and no changes were made. The "run" in the studio also doesn't work. What's interesting is that those templates render just fine when using API. Also in the studio, I have other templates using docx helper and those preview and run correctly. The error reported in the preview pane is :
Cannot read properties of undefined (reading 'error').
It is display using dark grey on black so it's barely visible:
but I can read it when I highlight it:
-
browser_client disconnecting in appsmith
Hello I use the the browser client in appsmith to render some pptx and docx report. appsmith lets me connect an external library, so I use this link to connect : https://cdn.jsdelivr.net/npm/@jsreport/browser-client@3.1.1/+esm
The browser_client works for awhile, but eventually it disconnects and I get "browser_client is not defined" and I have to remove and re-add the library. Any idea why this happens? Other libraries in use in the application work fine.