Print Templates
Moderators: Tyler, Scott, PWB v2 Moderator
I certainly should have thought things through before making my last statement. We used the template without printer/quality switching previously, and I went to roll that out Yesterday, only to find it didn't work.
I've fixed the problem and emailed Scott the new file. I think it works better now anyway :)
GregP
I've fixed the problem and emailed Scott the new file. I think it works better now anyway :)
GregP
And here is the new file.
http://www.teamsoftwaresolutions.com/so ... ntPWB2.zip
One note: the template works bset if PWB is maximized and the screen resolution is at least 1024 X 768. Other wise some of the settings controls get cut off and the cancel button is hidden.
I have left the old one intact just in case anyone wants to build off them.
--Scott
http://www.teamsoftwaresolutions.com/so ... ntPWB2.zip
One note: the template works bset if PWB is maximized and the screen resolution is at least 1024 X 768. Other wise some of the settings controls get cut off and the cancel button is hidden.
I have left the old one intact just in case anyone wants to build off them.
--Scott
I've fixed another bug in the template. Some of our customers were complaining about an error showing up on certain web sites when trying to print. It has to do with the template trying to test for the existence of frames and the remote site denies permission.
I've added appropriate error handling now, and the template assumes no frames exist. I haven't seen a site which actually uses frames and restricts access to the portion of the DOM needed for printing them.
EDIT: The changes are only present in 'initialisation.js'.
GregP
P.S. Has anyone used these yet, in live or test environments? I'd love to know, even if they went hideously wrong for you, because I haven't had a wide testing environment myself.
I've added appropriate error handling now, and the template assumes no frames exist. I haven't seen a site which actually uses frames and restricts access to the portion of the DOM needed for printing them.
EDIT: The changes are only present in 'initialisation.js'.
GregP
P.S. Has anyone used these yet, in live or test environments? I'd love to know, even if they went hideously wrong for you, because I haven't had a wide testing environment myself.
And here is the new template.
http://www.teamsoftwaresolutions.com/beta/printPWB4.zip
Thanks again GregP.
--Scott
http://www.teamsoftwaresolutions.com/beta/printPWB4.zip
Thanks again GregP.
--Scott
Here are some tutorials on using Internet Explorer Print Templates.
The print templates are really HTML type files that PWB can use to manipulate the Internet Explorer Print Preview. Here is some tutorials on using them.
http://www.webreference.com/js/column89/
http://www.webreference.com/js/column91/
http://www.webreference.com/js/column92/
http://www.webreference.com/js/column93/
http://www.webreference.com/js/column94/
http://www.webreference.com/js/column95/
--Scott
The print templates are really HTML type files that PWB can use to manipulate the Internet Explorer Print Preview. Here is some tutorials on using them.
http://www.webreference.com/js/column89/
http://www.webreference.com/js/column91/
http://www.webreference.com/js/column92/
http://www.webreference.com/js/column93/
http://www.webreference.com/js/column94/
http://www.webreference.com/js/column95/
--Scott
Following an email from my replacement in my old job I thought I'd check in here and see how things are going.
As I understand it, the print templates have to be 'attached' in the WebBrowser Control (Scott could give a better answer since he did that bit). Unless IE7 made big changes there (which I doubt since PWB still works ) then there shouldn't be any problems with that part.
Beyond that any changes to the IE rendering engine would effect the GUI portion of the template. It would suck if they removed support altogether, but I don't have PWB installed on this PC to test.
Has IE7 been tried by anyone using the print templates?
As I understand it, the print templates have to be 'attached' in the WebBrowser Control (Scott could give a better answer since he did that bit). Unless IE7 made big changes there (which I doubt since PWB still works ) then there shouldn't be any problems with that part.
Beyond that any changes to the IE rendering engine would effect the GUI portion of the template. It would suck if they removed support altogether, but I don't have PWB installed on this PC to test.
Has IE7 been tried by anyone using the print templates?
Hi Greg, welcome back
I had tried using the print template with IE7, and as I recall it didn't work... at all. Not to mention the fact that the print preview screen in IE7 is completely different (for the better, for the most part at least).
Also, because of the way the print template has to change the default printer in order to work, it just would not work with the security settings on our public computers.
I had tried using the print template with IE7, and as I recall it didn't work... at all. Not to mention the fact that the print preview screen in IE7 is completely different (for the better, for the most part at least).
Also, because of the way the print template has to change the default printer in order to work, it just would not work with the security settings on our public computers.