How to unzip? Should I need to download any tool to unzip it? Also it doesn't tell the correct location of corrupted area .
Reshma Jacob
@Reshma Jacob
Posts made by Reshma Jacob
-
RE: I have modified the jsreport configuration in production but reports stopped working
-
RE: How to access variable returned from script to html tag
Instead of updating new version is there any other alternative solution? Because our clients where using the reports
-
RE: How to access variable returned from script to html tag
Can you please reply sorry for asking i don't have much knowledge in css
-
Appending multiple reports using pdf utils takes more time to render report
Hi sir,
I using jsreport pdf utils for appending 3 reports , that means,
I have a main template from which I m calling other 3 template in the after render hook.ie,In After render hook,
1.append main template content with template 1
2.append template 1 content with template 2
3.append template 2 content with template 3Time duration explanation
1.from before render to after render of main template takes 1 or 2 second
2.rendering of template 1,2,3 takes 3 or 4 second means report data reading API takes 1 or 2 sec and from beforerender to reach afterrender takes 2 seconds.So rendering each template takes approximately 4 seconds so total 3x4 = 12 and from beforerender to reach afterrender of main template takes 2 second
So total 14 seconds .I'm using jsreport version 3.3.0
Is there any option to reduce the time.
Is there any other solution to reduce the time??
Is copy paste the html of each template into one and calling Api for each report in before render hook is the only solution to overcome this time issue??
Please reply
-
RE: How to throw custom error message from jsreport
Sorry where I need to add this code.i want to throw from template and if error encountered i want to push error message to socket url.
Also I'm deploying jsreport to AWS via docker and there is only jsreport configuration exist in docker project.you mean i need to create server.js file in that docker project?? Can you please explain in detail??
-
RE: How to throw custom error message from jsreport
I have added try catch in before render ie,
try{} catch (error){
done(error)
}So when ever there is any error encountered inside before render and it's sub functions catch block works and using web socket api we pass the error message to the client.
Here after render won't works.but if error encountered in html then before render catch block won't works so how can I acknowledge to the client that there is an error in report?
We are running report asynchronous way so when we render a report using jsreport.render function of jsreport - browser client package we instantaneously get a url. Till now what we are doing is that , using that url we get the status of report by using timer function which runs every one second.but i think it is wrong approach because we are calling lots of get method just for getting the status of report and it makes application becomes slow can you help me how to handle error for asynchronous rendering???
-
How to throw custom error message from jsreport
Hi sir I want to throw custom error message from jsreport like this,
{
"Error message":"you don't have permission to print template",
StatusCode:400
}How to throw this error object from jsreport??
-
How to import font in jsreport?
Hi sir,
Instead of installing each font in docker is there any way to use it as asset by importing the font files.because some template of our report need particular font and other template need a particular font.for example A template need Muller font and B need both Muller and Rage italic and C template need Arial font.Also which extension font work in jsreport ie,.ttf,.otf etc
Is Google Api font is better? Can u please tell me from where fonts should download?
Also bold is not working in our production but it works locally so can please tell me the font required for bold only.because i have designed more 100 templates for our clients and still they we're using it.so they asked why bold is not working so I installed
RUN apk add --update fontconfig && apk add --no-cache msttcorefonts-installer && update-ms-fonts && fc-cache -f
In my docker file but the problem is bold works but style breaks means i wrote font family as Ariel i don't know due to this or due to anything
So i suddenly deleted using command,
RUN apk del fontconfig
RUN apk del msttcorefonts-installerIs by uninstall like this whether the template got corrupted because I have done this in production directly.now it is working but still I'm asking?
Please help
-
RE: Any common solution for logo dimension to fit for template?
Hi sir sorry for the confusion. what I was actually asking for is that for example we have a global template named A .i have set logo dimension to 305x112 px for my template.
Our application is multi tenant so when user try to print the same report what is happening is that we clone our global template and create a new copy for that particular client and we also upload the client logo for that template by resizing it to 305.x112 dimension.my issue is sometimes the client logo may small and while we create the logo to that predefined dimension it can cause stretching and it loses the clarity.
Is there any other way to resize the logo without changing dimension by using css or something.can u please help me??
Can you please suggest any other solution.i don't have much knowledge about css?