Solved

"print to file" Question

Posted on 1998-10-16
11
353 Views
Last Modified: 2010-04-12
Hi,

I have a slow Deskjet printer connected to my machine. Often I would prefer to print the output on another printer (laser) that is not connected to my machine (but to a networked system of computers). I was always under the impression that the "print to file" option in many programs allows one to write the printable ouput to a file and then allows one to print the file from any other machine, even if it does not have the application that created the file. I tried it but had no success. I'd appreciate any help in terms of advice on syntax etc.
0
Comment
Question by:irina
  • 5
  • 3
  • 2
  • +1
11 Comments
 

Expert Comment

by:ewilson
ID: 2012908
Install the printer that you would like to use locally on your machine, when it asks what port tell it print to file.  when you print to this printer on your computer it will prompt for a file name, type one in.  Copy this file to a disk and take it to a workstation that can print to this printer.  Make sure the workstation you are printing from has the printer captured to an LPT port (control panel/printers/properties for that printer/details/capture port).  Go to Dos and use the type command to pipe the file to the printer port that is captured.
Ex:  Type a:\test.prn >lpt1
note: substitute the lpt1 with whatever lpt port you have captured for that printer.
0
 
LVL 3

Expert Comment

by:duckers
ID: 2012909
ewilson has not considered some vital considerations. There are broadly speaking two main types of printer driver, PCL and PostScript. One needs to use a print driver to create the print file that is compatible with the printer you aim to print to. Eg if you save a PS file you will just get gobledegook out of your printer if it is PCL only printer. Also one should simply copy the file to the appropriate port i.e. copy a:\test.prn lpt1. This is a easy and straightforward task which I have do on a regular basis. 200 point is an overkill for this question.
Have fun
James
0
 
LVL 2

Expert Comment

by:bushhead
ID: 2012910
just a few comments that i have to add :)

if your machine is networked, why not just print straight to the printer that is hooked on already? maybe the person doesn't want to share the printer or something.. not sure.

anyways, you could just print striaght to that printer, or print to a file and then print to that printer. i have save a batch file called print.bat in a directory c:\print. i print to file all my documents with numbers there and then when i'm done i just go "print x x x x x x" where x are the document numbers.

the batch file is
@echo off
copy %1 /b \\machinename\printername
copy %2 /b \\machinename\printername

and so on, you can place as many as you like.. as to why i don't just print straight to the printer, i prefer to do all my printing at one shot and then go and collect it.

by the way, you can always edit the batch file to suit youself, like if you want to use it from the machine straight.

bush
0
 
LVL 3

Expert Comment

by:duckers
ID: 2012911
Fully agree with bush. Like the batch file idea. The copy syntax bush suggests better suites the original question which did intimate that the printer you eanted to print on was availible over a network.
0
 

Author Comment

by:irina
ID: 2012912
Bushhead's suggestion worked. Please repost so that I can credit you the points.

Thanks all.

irina
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:irina
ID: 2012913
How do I find out the name of the Printer (especially on a Foolproofed system)?
0
 
LVL 2

Accepted Solution

by:
bushhead earned 200 total points
ID: 2012914
thanks irina.

with regard to your question, what is a 'foolproofed system'? under normal circumstances, just check the printer name of the other computer under printer settings then \\comp\printer

:)

bush
0
 

Author Comment

by:irina
ID: 2012915
Thanks
0
 

Author Comment

by:irina
ID: 2012916
Hi Bush,

Actually, I was asking about a network which is secured using FoolProof 95.  However, I have the printername I need. How do I find out the printername for a WindowsNT (protected) machine?

Thanks,

Irina
0
 

Author Comment

by:irina
ID: 2012917
Hi bush,

By the way, I was playing around with your batchfile syntax and found that one can use wildcards, i.e one can print multiple files using the following command:
copy *.prn /b \\machinename\printername

This way one can have all the prn files in one directory and print them all at once.

Irina
0
 
LVL 2

Expert Comment

by:bushhead
ID: 2012918
sorry i haven't been around for so long.. :) been busy with other stuff..

your tip about *.prn is good, but usually i spool differnt documents to differnt printers :) like colour*.prn to colour printer and bw* to laser printers :) thanks anyways

bush
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

How to solve seemingly unsolvable printer issues. Users sometimes run into printing issues where all the normal steps do not seem to work. Well the steps below can show users how to take one extra step beyond the normal steps needed to remove old…
When I recently replaced my image transfer kit on my office HP color laserjet 5550dn printer, I had a slight problem.  The left bracket that holds the transfer kit got stuck in the upright locked position instead of being at a 45 degree angle facing…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now