Page 2 of 4

Re: [ANGULAR] The export function has no style

Posted: Thu May 12, 2022 11:15 am
by alex.l

Yes, you'll be needed to launch that code in some port on your remote server and setup URLs in feature configs to use that.


Re: [ANGULAR] The export function has no style

Posted: Thu May 12, 2022 11:31 am
by shimnx

Do I need to package the serve file, how do I publish to the server, we have no experience with NodeJS


Re: [ANGULAR] The export function has no style

Posted: Thu May 12, 2022 5:49 pm
by Maxim Gorkovsky

Hello.
Export server is a simple web application which receives HTTP requests and sends out HTTP responses. It runs with a command line that does not require any NodeJS experience.
Running it on the server depends on what your server is. If you have access to the file system and remote shell, running node process on the server is the same as on the local machine.

Tricky part here is how to make export server on the remote machine to load styles correctly. This section is covered in the resources section in server README.md. Long story short - you need to make sure export server running on remote machine can access stylesheets that exported page is using.


Re: [ANGULAR] The export function has no style

Posted: Wed Jun 08, 2022 7:42 am
by shimnx

If I publish the Node service to our cloud server, do I have to apply for a separate domain name for the service, or how do I run the service


Re: [ANGULAR] The export function has no style

Posted: Thu Jun 09, 2022 9:50 am
by shimnx
Maxim Gorkovsky wrote: Thu May 12, 2022 5:49 pm

Hello.
Export server is a simple web application which receives HTTP requests and sends out HTTP responses. It runs with a command line that does not require any NodeJS experience.
Running it on the server depends on what your server is. If you have access to the file system and remote shell, running node process on the server is the same as on the local machine.

Tricky part here is how to make export server on the remote machine to load styles correctly. This section is covered in the resources section in server README.md. Long story short - you need to make sure export server running on remote machine can access stylesheets that exported page is using.

If I publish the Node service to our cloud server, do I have to apply for a separate domain name for the service, or how do I run the service


Re: [ANGULAR] The export function has no style

Posted: Fri Jun 10, 2022 9:26 am
by Maxim Gorkovsky

Hello.
Sorry for long response. General idea of the export server is that it exists separately from the app, so app has to know address of the server to refer to. It is possible to run server on the same host on a different port too - it is just a web app after all.
Does that answer your question?


Re: [ANGULAR] The export function has no style

Posted: Thu Aug 11, 2022 4:01 am
by shimnx

I want to pass some extra parameters when I call the export interface.


Re: [ANGULAR] The export function has no style

Posted: Thu Aug 11, 2022 1:21 pm
by alex.l

Re: [ANGULAR] The export function has no style

Posted: Wed Dec 07, 2022 11:37 am
by shimnx

What should I do if I want to listen for an end of request event?

pdfExport : {
                exportServer : 'https://qakimigatewaybe.schaefflercn.com/pp/gateway/api/app/project-task/export-gantt-pdf',

            // Development config
            translateURLsToAbsolute :true,
            openAfterExport:true,
            openInNewTab:false,
            listeners: {
                beforeRequest:(data)=>{
                    console.log(data)
                }
            },
            // For production replace with this one. See README.md for explanation
            // translateURLsToAbsolute : 'https://localhost:8080/resources/', // Trailing slash is important
            keepPathName : false
        },

Re: [ANGULAR] The export function has no style

Posted: Wed Dec 07, 2022 3:21 pm
by alex.l