hi!, we have some logic in our browser sdk that handles the jsreport response and either download it in dialog or show it in iframe. here is the source code of the browser sdk maybe you get the idea of how to work with the response, but be sure to first read the docs of the browser sdk to get and idea on where to look in the source code
hi! the standard paper page size will depend on the format you use (A4, A3, etc), but this size is usually given in inches and translate that to pixels is conditional to the resolution of your machine, here you can see how the conversion can be done for common paper sizes and maybe can be useful to you. you can also force a custom paper size in phantom options too just FYI.
but if something change in the content, the height change, so the fixed height div result higher or smaller.
i don't have a good solution for this. are you using the fixed height div to layout your primary template content? or just to emulate header/footers? you should only use that to emulate headers/footers, but i don't know why changing the content in this particular div will change its dimensions. do you have some example when this happens? (curious to know)
do you mean like these ones? i'm not too familiar with printing these labels but it seems like it is more about the printer and what kind of requirements the label format and the printer has, maybe it requires high quality images or that the design it is exported in a format that it is not PDF in which case jsreport won't help you too much, but if the format can be PDF you can run some test and try to print those files, maybe the exported quality will be enough for the label printing
As it turns out the script tag being returned from jsreport was not getting executed when setting div.innerHtml (via an angular element ref). This was because of the security measures in Angular. It suggests using a binding in combination with use of the DomSanitizer as outlined here https://netbasal.com/angular-2-security-the-domsanitizer-service-2202c83bd90. This still didn't work.
I finally used this and it all worked out.
const mydiv2 = self.rptsection.nativeElement; (rptsection is an ElementRef)
// a way to get .innerHTML to have executable script tags
const fragment = document.createRange().createContextualFragment(res.toString());
Thank you for the support. It is much appreciated.
hi @khalisaran our CRUD API docs does not go in details about every CRUD action but as Jan said you can inspect the network payload with your browser devtools, you will find that the request it is very easy to follow. we will improve the docs for the CRUD API but if you have the time and you figure it out the request shape for the CRUD actions don't hesitate to make a pull request and contribute to the project, every contribution helps us a lot.
Hi i am trying to connect the mysql database with jsreport data,
for that i refer some links but in the official link they said we only accept the mssql,mongodb and postgreSQL. Whether its possible to connect the mysql database with jsreport.
below i attached the link
the mssql, mongodb and postgreSQL official support is for template stores, saving jsreport entities (templates, scripts, helpers, assets) inside databases. we don't have mysql support yet because we are analyzing better ways to store the jsreport entities in SQL databases, so the support for mysql will come later. if you need this right now, you can check the open source repository of the postgresql store to give you an idea of what needs to be done to support MySQL and maybe you can add the support it easily for you
if for some reason i missed the point of your question and you were talking about consuming mysql data from jsreport, then you can check this post that gives you more info about consuming business data from jsreport.
I've just updated long reports blog post to include the "out of memory" section.
Note that the solution provided by @bjrmatos will work only for in-process rendering strategy. See details in the blog post.
If this won't help, please try to provide us a minimal repo or sources replicating the issue so we can take a look.
Disabled Categories are greyed out
This topic will be moved to the category
Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.