Print button and absolute paths

Print button and absolute paths

jouvenjouven Posts: 22Questions: 1Answers: 0

The issue is that any element that is using some kind of url/path when printing (i.e: CSS or images), fails to show correctly if it's not using absolute paths. I'm using the jqueryui css for dataTables which uses images and it fails too. Is there a workaround? Is it going to be fixed in the future? or do I need to make sure that everything uses absolute paths before printing? I mean, this third option is pretty obnoxious, being forced to use styles writing domain+path and change the css sources so they use domain+path urls too.

Replies

  • allanallan Posts: 62,225Questions: 1Answers: 10,208 Site admin

    The only workaround would be to create a print page using whatever standard method you are using to create pages (a new HTML file for example) and have a button that will open a new window to that page.

    Otherwise, its absolute URLs as you say.

    The reason is that the new window that is created for the print view is created purely in Javascript. There is no root domain for the page. I can't see how I would workaround that, so I'm afraid I don't see how it could be "fixed".

    Allan

This discussion has been closed.