mr2fit
asked on
Windows command-line utilty for raw print
Hi,
We moved our character based application to windows 2008 R2. RDP sessions should map the printers of my local clent windows 7. Tjhat works ok. When I print something from Notepad I cab select my default printer.
But off-course when printing from our application the print job appears in de spooler of Windows 2008 but not in de spooler of the Windows 7 client.
Openedge provide a print utily to print text files. Also works ok. But I want to do some Raw printing because of som embedded PCL codes.
I wonder if a command-line utilty exists that could do the raw print job and respect the printermapping...
Best regards,
Martin
We moved our character based application to windows 2008 R2. RDP sessions should map the printers of my local clent windows 7. Tjhat works ok. When I print something from Notepad I cab select my default printer.
But off-course when printing from our application the print job appears in de spooler of Windows 2008 but not in de spooler of the Windows 7 client.
Openedge provide a print utily to print text files. Also works ok. But I want to do some Raw printing because of som embedded PCL codes.
I wonder if a command-line utilty exists that could do the raw print job and respect the printermapping...
Best regards,
Martin
I don't know if it resolve your needs but you can try using
print /D:<device> <path_to_file_which_you_wa nt_to_prin t>
print /D:<device> <path_to_file_which_you_wa
ASKER
Hi,
The forwarding to port lpt or 2 was indeed the way I did it. But the lpt1 port doesn't exist anymore. We did it like you suggested. With net use redirecting the output to lpt1.
I also use a procedure http://www.oehive.org/node/499 to do a raw print. On the windows 7 client it works but from Windows 2008 using rdp it doesn't work.
"print" I tried yesterday. Printjob comes in spooler of windows 2008 but does not arrive at windows 7 client.
Martin
The forwarding to port lpt or 2 was indeed the way I did it. But the lpt1 port doesn't exist anymore. We did it like you suggested. With net use redirecting the output to lpt1.
I also use a procedure http://www.oehive.org/node/499 to do a raw print. On the windows 7 client it works but from Windows 2008 using rdp it doesn't work.
"print" I tried yesterday. Printjob comes in spooler of windows 2008 but does not arrive at windows 7 client.
Martin
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes it's an HP Laserjet printer. PCL 5, just upgraded the drivers to PCL 6 (on the print server and on the local Windows). But could that be the reason the mapping stops for this kind of output?
ASKER
Ok 8 hours later. We solved the problem. The problem was indeed the HP PCL 6 driver. We installed the Universal HP PCL 5 driver on the print server, Windows 2008 R2 and the Windows clients. Everybody is happy now.. Thanks for putting my nose in the right direction.
This problem is solved, thanks.
This problem is solved, thanks.
ASKER
Thanks to this answer i was able to find the solution to my problem. Downgrading th edrivers of the HP Laserjet printer to PCL 5.
copy filename.txt lpt1