Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 7 Jahren, 7 Monaten
Letzter Beitrag:
vor 7 Jahren, 7 Monaten
Beteiligte Autoren:
Joel, issah, Fabrice Harari, Peter van Vuuren

WB15 - Way to print directly to a printer - other than server?

Startbeitrag von Joel am 08.11.2010 14:01

Hi All -

Is there a way in WebDev to print directly to a local printer? When the application opens, I want to print a doc or 2 automatically, with no intervention from the user.


Hi Joel

no... Printing from the web without user intervention is not possible (and it's a very good thing)... Imagine if on top of opening pop-ups, some web site were also printing them?

You can start the printing process by displaying what you want as a pdf, but that's about it

best regards

von Fabrice Harari - am 09.11.2010 15:40
Thanks Fabrice- I figured as much, but figured I'd ask!


von Joel - am 09.11.2010 16:36

Is there a way in WebDev to print directly to a local printer?

Yes there is, but with prerequisites.
(I needed the functionality to print receipts for in-store kiosk WebDev applications)

- Internet Explorer as browser.
- must be a 'trusted site' (i think)
- enable ActiveX controls & plugins (maybe some more ActiveX tweaking in IE, dont know exactly anymore) for the trusted site.
- HTML print (no PDF or other)

- Add VBScript to the created HTMLprint from your Webdev app and eventually javascript (window.close) depending your needs.

For the VB-script google on 'execWB(6,2)' or/and 'CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'


von Peter van Vuuren - am 10.11.2010 11:31
Thanks Peter - good to know, but I wouldn't want to restrict my users to IE! :)



von Joel - am 11.11.2010 17:58
How about printing using LPD/LPR. I have used it extensively though not through a browser but its really the definition of the printer that matters. You print to a local printer (a dummy) which in turn sends the output to a printer located at a specified ip address. Of course that printer would have to be visible over the net, so it is possible but I guess practicality would be the overriding concern here.



von issah - am 11.11.2010 22:20
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.