FFSProgrammer
Programmer
My company needs me to set up some statements to print on an HP LaserJet 4100 DTN. We just received the Technical Reference Manual set and there is nothing like an application-level tutorial in any of the books (so far as I can see).
We are operating off a UNIX server with Windows 2000, Windows XP, and Windows 95/98 clients running over a TCP/IP network. The software we use to print statements is custom-written in an interpreted programming language (my specialty). The interpreter uses a configuration file to make device assignments easy. It allows us to set up filters and override/specify modes.
I've been trying to incorporate PCL 5 escape sequences into what we call "raw mode" (supposedly unfiltered) output streams. All I get is garbage surrounding the text.
I decided to print the escape sequences and text to an ASCII file and then try to print that under Windows. Got little boxes where the escape characters should be on the output.
Can only print these files on a Win2K system through text applications like Word or Wordpad. When I run a CMD.EXE window and try to use the PRINT command, it gets hung up (I'm probably using the wrong printer reference, but I don't do network configurations and am not sure of what device name to use).
After spending the afternoon reading this forum and a half dozen other sites, I have been unable to find a concise example of an ASCII file that any fool should be able to load into Wordpad (or something standard on any Windows 2K system) and send to a PCL printer.
All I need to do is change some font sizes and reposition the cursor. No graphics (at this time). I can't even get the thing to change the size of the characters with generic commands (like print EXPANDED, change Lines Per Inch, etc.). Spacing remains the same. Am only trying to use Courier Font (printer is set for that already).
The only thing I noticed (when looking at the printer settings) is that the personality is set to AUTO instead of PCL.
Anyway, what's the best starting point? Once I see how to do something I can generally move ahead quickly. But if there is supposed to be an intuitive path into this stuff, I am NOT going to get it.
Any help/suggestions would be appreciated. Concrete examples (print 1 sentence like this, print 1 sentense LIKE THAT, etc.) will be EXTREMELY helpful.
Thanks in advance.
Do not have access to C, C++, VB, Java, or any of the usual languages. I do have access to Perl on the UNIX server (and I do some Perl programming so I could probably follow examples in Perl pretty easily).
We are operating off a UNIX server with Windows 2000, Windows XP, and Windows 95/98 clients running over a TCP/IP network. The software we use to print statements is custom-written in an interpreted programming language (my specialty). The interpreter uses a configuration file to make device assignments easy. It allows us to set up filters and override/specify modes.
I've been trying to incorporate PCL 5 escape sequences into what we call "raw mode" (supposedly unfiltered) output streams. All I get is garbage surrounding the text.
I decided to print the escape sequences and text to an ASCII file and then try to print that under Windows. Got little boxes where the escape characters should be on the output.
Can only print these files on a Win2K system through text applications like Word or Wordpad. When I run a CMD.EXE window and try to use the PRINT command, it gets hung up (I'm probably using the wrong printer reference, but I don't do network configurations and am not sure of what device name to use).
After spending the afternoon reading this forum and a half dozen other sites, I have been unable to find a concise example of an ASCII file that any fool should be able to load into Wordpad (or something standard on any Windows 2K system) and send to a PCL printer.
All I need to do is change some font sizes and reposition the cursor. No graphics (at this time). I can't even get the thing to change the size of the characters with generic commands (like print EXPANDED, change Lines Per Inch, etc.). Spacing remains the same. Am only trying to use Courier Font (printer is set for that already).
The only thing I noticed (when looking at the printer settings) is that the personality is set to AUTO instead of PCL.
Anyway, what's the best starting point? Once I see how to do something I can generally move ahead quickly. But if there is supposed to be an intuitive path into this stuff, I am NOT going to get it.
Any help/suggestions would be appreciated. Concrete examples (print 1 sentence like this, print 1 sentense LIKE THAT, etc.) will be EXTREMELY helpful.
Thanks in advance.
Do not have access to C, C++, VB, Java, or any of the usual languages. I do have access to Perl on the UNIX server (and I do some Perl programming so I could probably follow examples in Perl pretty easily).