Using spooler with HP Laserjet 5000

I am trying to get spooler to work with an HP Laserjet 5000 that is
attached to a remote Windows machine. Using lpr to print a text file
works just fine, but when I try to use the Photon print function from a
Photon program I get pages and pages of strange characters. I assume
that I have something wrong with my .cfg file, but it eludes me as to
what it might be. If someone has gotten this to work, I would appreciate
a tip and perhaps a listing of an appropriate .cfg file.