Get Selected Printer

Maybe a Work Around For Windows

  1. Open the Printer Property Page of your USB printer
  2. Go to the share / sharing tab. Check the Share button and give the one printer share name, and click on ok.
  3. Open the Command Prompt CMD
  4. Excute the given command:
    net use lpt1: \\computername\printersharename /persistent:yes

After you have done that, you can easily run the dos command.

Print MyFile.txt

Or

  1. Open the Printer Property Page of your USB printer
  2. Go to the share / sharing tab. Check the Share button and give the one printer share name, and click on ok.

    Print /D:\\computername\printersharename MyFile.txt

Just run the print comand from a Xojo Shell

Some printers can also take a pdf files. If not you will get lot of strange characters printed on your paper.