EDIT: oh man, i just noticed that we apparently had added the v=1 parameter to avoid caching the print html. I am sorry, carry on as you were...
Hi, i just moved our custom print.html page to our latest version of our project, and i don't think it works properly in 13.0.
I basically do what you have suggested in other threads here previously, I get the printframe.html out, i got it from
, and i have a row in my loadingpage that changes the url like this:
I then just call Canvas.showPrintPreview(grid).
However, in the latest smartgwt version (i just downloaded 2022-09-21), nothing happens and i get this in the log:
I looked at PrintFrame.html, and maybe it's an issue with the url params?
IN the old smartgwt(12.1), the url when printpreview is called is this:
but in 13.0 it is:
As you can see, there's now a "v" as the first url parameter, so there are multiple '?' in the url which screws up the parsing of the url params.
If i go into the printframe.html and hard-code line 174 from
window.controllerCanvas = "params.id";
to
window.controllerCanvas = "isc_PrintCanvas_0";
it works.
Seems like something that requires a fix, but is there anything i can do on my end in java code in the meantime?
Pointers appreciated, cheers
Hi, i just moved our custom print.html page to our latest version of our project, and i don't think it works properly in 13.0.
I basically do what you have suggested in other threads here previously, I get the printframe.html out, i got it from
smartgwtpro-13.0p/lib/smartgwtpro/com/smartclient/public/sc/system/helpers
Code:
<script>isc.PrintCanvas.addProperties({printFrameURL: "ns/print.html});</script>
However, in the latest smartgwt version (i just downloaded 2022-09-21), nothing happens and i get this in the log:
Printing:Print canvas with ID:undefined failed to render correctly.
I looked at PrintFrame.html, and maybe it's an issue with the url params?
IN the old smartgwt(12.1), the url when printpreview is called is this:
Code:
http://....../PrintFrame.html?id=isc_PrintCanvas_0&title=MyTitle
Code:
http:/...PrintFrame.html?v=1?id=isc_PrintCanvas_0&title=MyTitle
If i go into the printframe.html and hard-code line 174 from
window.controllerCanvas = "params.id";
to
window.controllerCanvas = "isc_PrintCanvas_0";
it works.
Seems like something that requires a fix, but is there anything i can do on my end in java code in the meantime?
Pointers appreciated, cheers
Comment