Print Templates

For general issues related to PWB v2.

Moderators: Tyler, Scott, PWB v2 Moderator

GregP
Benefactor
Benefactor
Posts: 90
Joined: Thu Mar 13, 2003 12:34 am
Location: QLD Australia

Post by GregP »

Not a problem.

If anyone finds problems with it, please let me know. I haven't tested it widely, just on our PCs and it works there.

GregP

GregP
Benefactor
Benefactor
Posts: 90
Joined: Thu Mar 13, 2003 12:34 am
Location: QLD Australia

Post by GregP »

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

Scott
Site Admin
Site Admin
Posts: 2537
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

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

GregP
Benefactor
Benefactor
Posts: 90
Joined: Thu Mar 13, 2003 12:34 am
Location: QLD Australia

Post by GregP »

I should have mentioned that. We run our PCs as the shell in 1024x768. The controls can all be resized though, it just simple HTML.

GregP

GregP
Benefactor
Benefactor
Posts: 90
Joined: Thu Mar 13, 2003 12:34 am
Location: QLD Australia

Post by GregP »

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.

Scott
Site Admin
Site Admin
Posts: 2537
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

Here is the new update from GregP.

http://www.teamsoftwaresolutions.com/beta/printPWB3.zip

--Scott

GregP
Benefactor
Benefactor
Posts: 90
Joined: Thu Mar 13, 2003 12:34 am
Location: QLD Australia

Post by GregP »

Thanks to some feedback from VernM I've fixed a bug regarding the on-screen display of printing costs (Some of my defaults were hard-coded by accident).

I've emailed Scott the latest version.

Scott
Site Admin
Site Admin
Posts: 2537
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

And here is the new template.

http://www.teamsoftwaresolutions.com/beta/printPWB4.zip

Thanks again GregP.

--Scott

Scott
Site Admin
Site Admin
Posts: 2537
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by 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

GregP
Benefactor
Benefactor
Posts: 90
Joined: Thu Mar 13, 2003 12:34 am
Location: QLD Australia

Post by GregP »

The time has come for me to leave my current job... moving on to greener pastures (in 2 weeks), so unfortunately I won't be around to help with further improves to the template (and I know it needs a few).

Feel free to use and adapt as desired. Good luck!

spragers
Benefactor
Benefactor
Posts: 153
Joined: Fri Dec 27, 2002 9:11 am
Contact:

Post by spragers »

Anyone know if there's a resource for using print templates with IE7? I was all set to roll out IE7 on our public stations along with a print template update to make sure patrons know how much their printouts are going to cost, and now GregP is gone and I'm at a loss so far...

Thanks!

and help! :P

GregP
Benefactor
Benefactor
Posts: 90
Joined: Thu Mar 13, 2003 12:34 am
Location: QLD Australia

Post by GregP »

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?

spragers
Benefactor
Benefactor
Posts: 153
Joined: Fri Dec 27, 2002 9:11 am
Contact:

Post by spragers »

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.

GregP
Benefactor
Benefactor
Posts: 90
Joined: Thu Mar 13, 2003 12:34 am
Location: QLD Australia

Post by GregP »

Bugger....

That may well be the death of print templates. I haven't seen anything about IE7 supporting them anymore... but then again there was very little documentation on how they working with IE6 either.

Post Reply