Announcement
Collapse
No announcement yet.
X
-
yeah, i took it away since i was the one that had added it, didn't want to confuse you. Thanks!
-
Thanks for the report - we've fixed this for tomorrow's builds.
The problem was that internal logic was doing this.printFrameURL + "? ...", but your printFrameURL already has params (or did, when you first posted it :) )Last edited by Isomorphic; 22 Sep 2022, 02:11.
Leave a comment:
-
Issue with custom print.html, bug in 13.0?
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 fromsmartgwtpro-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, cheersLast edited by mathias; 21 Sep 2022, 06:57.Tags: None
Leave a comment: