How to unzip? Should I need to download any tool to unzip it? Also it doesn't tell the correct location of corrupted area .
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?
-
Any common solution for logo dimension to fit for template?
Hi i have a report template in jsreport.our. Application is multi tenant so when a new client came i have to upload logo of theirs .but the problem is i have set dimension for logo so when a new user came i want to change their dimension to ours to fit logo but sometimes logo clarity and it will stretch.is there any common solution for logo case??
L mean without setting predefined dimension for logo?
Right now what we are doing is create logo with all dimension because our each template i have set different dimensions due to clarity, streching and size.but it very hectic job instead of setting predefined dimension is there any other solution???
-
RE: Can you please explain about components in jsreport
No I'm asking is it possible to create order template from samples can be create using components.if yes can you please share an example.also what do you mean by complex template because in documentation it is saying components are using for reusable template and for complex template.can please explain what do mean by complex template and reusable.can please show me example??
-
Can you please explain about components in jsreport
Hi sir ,
I haven't used components in jsreport till now.can please tell me in which scenario components are using?
Is it used for long reports?
I'm actually following order template (the sample template you are providing) , because we call api for getting data for our template. -
RE: Is it possible to use repository like GitHub ,bit bucket as store for report templates?
Can you please show me one example?.where I have to use/app/data.Sorry sir i didn't get your point?
Also we are running jsreport in AWS by using docker.So how to mention our store information is from git in docker file?
Right now we are using mongo db as store for jsreport.but it is little expensive so I want to switch to file system (ie, fs store).Also by performance wise which one is better fs store or mongo db store?. please help
-
Is it possible to use repository like GitHub ,bit bucket as store for report templates?
Hi sir,
Is it possible to use repository like GitHub, bit bucket as store( file system) for storing report templates? -
Template stored in aws s3 editing externally
We are using jsreport in our application using docker and templates are stored in aws s3 bucket but after modifying the template from our application's HTML editor the changes is not reflecting in jsreport studio and in report preview. In order to get the modification reflected I have restart the report service.
{
"allowLocalFilesAccess": true,
"httpPort": 8084,
"store": {
"provider": "fs"
},
"extensions": {"studio": { "flushLogsInterval": 20000 },
"scheduling": { "intreval": 20000 },"fs-store": {
"persistence": {
"provider": "aws-s3"
},
"compactionInterval": 20000,"syncModifications": {
"updateStudio": true
},
"sync": {
"usePolling": true
}
},
"fs-store-aws-s3-persistence": {
"accessKeyId": "xxx",
"secretAccessKey": "xxxx",
"bucket": "jsreportbucket",
"lock": {
"queueName": "jsreport-lock.fifo"
}
},
"scripts": {
"timeout": 300000,
"allowedModules": ["request", ""]
}
},
"phantom": {
"numberOfWorkers": 2,
"timeout": 180000,
"strategy": "dedicated-process"
},
"templatingEngines": {
"numberOfWorkers": 2,
"timeout": 1800000 ,
"strategy": "http-server"
},
"tasks": {
"numberOfWorkers": 2,
"timeout": 600000,
"strategy": "dedicated-process",
"forkOptions": {
"execArgv": [
"--max-old-space-size=4096"
]
}
},
"scripts": {
"timeout": 1200000,
"allowedModules": ""
},
"express": {
"renderTimeout": 1800000,
"inputRequestLimit": "200mb"
}
}