1

I'm building a web-based application that can use ActiveX Controls to print to a Thermal Label Printer (specific to shipping labels) in Windows environments, but I am racking my brain to figure out what the best method would be for OSX. Obviously ActiveX doesn't work on macs...

Any ideas about where to start looking? A flash movie? A firefox add-on? My fingers are tired of googling.

James M
  • 239
  • 1
  • 6
  • What kind of printer is it (Datamax, Zebra, etc...)? Is it on the same side of the firewall as the web application user? Also, are you opposed to buying software to solve this problem? If not, Loftware and Bartender are both very capable label printing servers. – Alex Feb 22 '10 at 23:48
  • The first one we're aiming to support is a Zebra. It will always be on the same side of the firewall as the user. It would be good to avoid requiring the purchase of software, as our target market is 1.5 million users strong, many of them small businesses: Bartender seems to be in the $ thousands. – James M Feb 23 '10 at 00:26

4 Answers4

0

There's no way a vanilla web language will allow you to control peripherals from a webpage under Mac OS.

If you really really need to call that from a webpage and can't afford to make a real application, your best go under Safari would be to build a plugin to use Objective-C from Javascript, and do the heavy-duty work from within your plugin. A similar solution probably exists in Firefox.

Also, as I understand it, your program runs on the client with the printer attached. You could write a server-side script and install it on the Macs, and then have your webpage drive it to do the printing.

zneak
  • 134,922
  • 42
  • 253
  • 328
  • Cool thanks for the tips! Any ideas about the right keywords to try searching for an existing firefox plugin to this end? – James M Feb 23 '10 at 00:28
0

My first choice to solve this problem quickly would be to use an enterprise label print server like Loftware or Bartender. But, like you said, they are expensive and you are planning on reselling your product.

My second choice would be to scrap the activex control and build a simple print server. There is no standard control language in the label printer world but if you are going to standardize on a certain class of Zebra printer you would only need to implement one driver at first. I have only ever done this for Datamax printers but I'm sure the process for Zebra printers is similar.

The server takes your label data as input (pallet ID, ship to address, etc), inserts that data into a template (painstakingly crafted in the text based printer control language) and then this label file is sent to the appropriate printer.

My third choice would be the browser based solution you are looking for. IT departments hate that stuff.

Alex
  • 2,350
  • 2
  • 20
  • 17
0

You can create an NPAPI plug-in, which will work in Safari, Firefox and other Mac web browsers. You'll need to have the user install the plug-in on their system before it can be used, there's no way to install it automatically.

Rob Keniger
  • 45,830
  • 6
  • 101
  • 134
0

Can't you just use the JavaScript printing API?

Marnen Laibow-Koser
  • 5,959
  • 1
  • 28
  • 33