Print Templates
Moderators: Tyler, Scott, PWB v2 Moderator
Print Templates
Hi Scott,
Does PWB already use a Print Template? I ask because I'm interested in introducing custom Print Templates for our PCs.
I'm not sure on a technical level whether this requires implementation within PWB, or if I can do it from outside and interrupt the relevant messages.
Of course if PWB already uses its own (to force the print preview), then it would be great if we could just specify an alternate htm file to use.
I'm referring specifically to this issue :
http://msdn.microsoft.com/library/defau ... review.asp
Thanks,
Greg
Does PWB already use a Print Template? I ask because I'm interested in introducing custom Print Templates for our PCs.
I'm not sure on a technical level whether this requires implementation within PWB, or if I can do it from outside and interrupt the relevant messages.
Of course if PWB already uses its own (to force the print preview), then it would be great if we could just specify an alternate htm file to use.
I'm referring specifically to this issue :
http://msdn.microsoft.com/library/defau ... review.asp
Thanks,
Greg
You should be able to use Print Templates with PWB without problems. PWB was built using Microsoft standards with the Internet Explorer WebBrowser Control and thus gains nearly all the IE functionality.
I only say should becuase I have not actually tested Pirnt Templates with PWB, but I am 99% sure they will work.
From the article:
"First, let's assume you've got a print template you want to use. How do you get Internet Explorer or the WebBrowser control to recognize your template and use it in place of the default print template provided with Internet Explorer?"
You will need to implement the Print Template just as if you were using IE. PWB should then gain the functionality.
--Scott
I only say should becuase I have not actually tested Pirnt Templates with PWB, but I am 99% sure they will work.
From the article:
"First, let's assume you've got a print template you want to use. How do you get Internet Explorer or the WebBrowser control to recognize your template and use it in place of the default print template provided with Internet Explorer?"
You will need to implement the Print Template just as if you were using IE. PWB should then gain the functionality.
--Scott
After looking further into the article, if PWB does not use the Print Template when implemented for IE, it looks like it should not be a problem to add the functionality directly into PWB.
If you do not mind doing a little testing, I can add the functionality and post a link to the new EXE.
There would problably be quite a bit of interest in this.
--Scott
If you do not mind doing a little testing, I can add the functionality and post a link to the new EXE.
There would problably be quite a bit of interest in this.
--Scott
Here is PWB v2.07 beta.
http://www.teamsoftwaresolutions.com/beta/PWBv207.zip
The following keys have been added to the INI file.
[Browser] ShellExecuteScripts=False
Allows scripts to run applications directly.
[Printer] PrintTemplateFile=
Enables use of Print Templates
[Java] EnableExternalJava=True
Disables or enables Dynamic External Java Commands
Please let me know if the Print Templates work as expected.
--Scott
http://www.teamsoftwaresolutions.com/beta/PWBv207.zip
The following keys have been added to the INI file.
[Browser] ShellExecuteScripts=False
Allows scripts to run applications directly.
[Printer] PrintTemplateFile=
Enables use of Print Templates
[Java] EnableExternalJava=True
Disables or enables Dynamic External Java Commands
Please let me know if the Print Templates work as expected.
--Scott
I have posted to our web site a few Print Template samples from Microsoft. These represent a good beginning to a secure Print Template Print Preview.
http://www.teamsoftwaresolutions.com/do ... plate1.htm
http://www.teamsoftwaresolutions.com/do ... plate2.htm
--Scott
http://www.teamsoftwaresolutions.com/do ... plate1.htm
http://www.teamsoftwaresolutions.com/do ... plate2.htm
--Scott
That would be great Greg. I am sure other libraries would benefit from them. If you want to send them to me I can post them on our site.
Here are some more examples from another library.
http://www.teamsoftwaresolutions.com/do ... ntpv1.html
http://www.teamsoftwaresolutions.com/do ... ntpv2.html
http://www.teamsoftwaresolutions.com/do ... ntpv3.html
--Scott
Here are some more examples from another library.
http://www.teamsoftwaresolutions.com/do ... ntpv1.html
http://www.teamsoftwaresolutions.com/do ... ntpv2.html
http://www.teamsoftwaresolutions.com/do ... ntpv3.html
--Scott
Here is GregP's very impressive print template. Even allows charging for printing.
http://www.teamsoftwaresolutions.com/so ... intPWB.zip
To use unzip to a folder and set the following in you INI file.
[Printer]
...
PrintTemplateFile=C:\path to folder\PrintTemplate.htm
...
Very nice work, thanks GregP!
--Scott
http://www.teamsoftwaresolutions.com/so ... intPWB.zip
To use unzip to a folder and set the following in you INI file.
[Printer]
...
PrintTemplateFile=C:\path to folder\PrintTemplate.htm
...
Very nice work, thanks GregP!
--Scott