Re: [ANGULAR] The export function has no style
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.
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.
Do I need to package the serve file, how do I publish to the server, we have no experience with NodeJS
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
Maxim Gorkovsky wrote: ↑Thu May 12, 2022 5:49 pmHello.
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
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?
I want to pass some extra parameters when I call the export interface.
Don't this that you're looking for?
https://bryntum.com/docs/gantt/api/Gantt/feature/export/PdfExport#config-fetchOptions
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
},