Thank you very much,:).
Posts made by Mic1223211
-
RE: When I migrate to jsreport v2,I got some problems.
-
RE: When I migrate to jsreport v2,I got some problems.
Hi,
I close my IDE and only open the node.js service as you see.
Here are my folders:
1# data:
2# templates( data and script are roughly the same as below):
Thanks,
Michael -
RE: When I migrate to jsreport v2,I got some problems.
Hi,
Could we add a condition to "jsreport-fs-store/lib/fileSystemSync.js" like below?
There are different kinds of solutions listed below:
1# Add the condition :
2# Doesn't add the condition :
Thanks,
Michael -
RE: When I migrate to jsreport v2,I got some problems.
Thank you for your answering.
4.2# Yes, I see the output. And I will debug the breakpoint and see what happened. 4.4# Sorry, the chrome.mediaType is work, I worked on the jsreport-chrome-pdf@1.0.2 version before.
Thanks,
Michael -
When I migrate to jsreport v2,I got some problems.
Hi,
When I migrate from jsreprot v1 to v2, I got some problems, could you please share some suggestions?
1.The default fonts from chrome and phantom are different.
V1:
V2:
2.The result of the rendering is not same(chrome and phantom).
V1:
V2:
3. performance table.
4.Which may causes this problems(I guess)?
1# Since chrome doesn't display the header and footer as my needed, I used the recommended jsreprot-pdf-utils, and I found the jsreprot-pdf-utils will cause the pdf file larger than before.
2# When I use the new fs-store plugin, it adds at least 10% more CPU usage because it will monitor the file changes in the dataDirectory directory and reload the file in real time.
3# Currently chrome is launched and then closed each time when PDF is generated.
4# If we not support viewport it will break all the ui style,since I use the bootstrap.
Here are the configurations:
jsreport.config V1:
jsreport.config V2 :
templates V1:
templates V2:
Thanks,
Michael -
RE: How to share the common code between angular2+ and jsreport.
Thank you for helping.
can you explain what kind of code are you sharing between jsreport and your angular app? is it some utils functions?
I share the angular service(service-directive-controller) and model( Model–view–controller ) between the client and jsreport.
--michael
-
How to share the common code between angular2+ and jsreport.
Hi!
I'm new here and it seems a nice forum!I have shared the common code between client code (which use angular1) and jsreport server, it works fine.
But now I need to upgrade the client code to angular2+ and typescript, and I am a new comer to typescript and angular2+.If you could give me some suggestion or idea that would be much appreciated.
I put my question at below.- Is there possible to run the angualr2+ with jsreport-chrome-pdf?
- Did you have any suggestion to convert angular2+ and typescript code to run with the jsreport?
- If I only convert the typescript to js(don't combine typescript with angualr2+ code), are the converted code and jsreport compatible?
Thanks,
Michael