#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Why print to a file

What is the purpose of printing to a file? I have a macro that sends a
series of 1 or 2 page reports to a printer. It ties up the printer for a
long time. Can I print to a file and then route the files to the printer to
speed that up?

I've tried printing to a file, but I don't know what to do with the file
after it is created to print it.

I'd appreciate any advice,
John
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default Why print to a file

Sending Binary Files to a Printer After Print to File
http://support.microsoft.com/kb/22734/en-us

John Hutcins wrote:

What is the purpose of printing to a file? I have a macro that sends a
series of 1 or 2 page reports to a printer. It ties up the printer for a
long time. Can I print to a file and then route the files to the printer to
speed that up?

I've tried printing to a file, but I don't know what to do with the file
after it is created to print it.

I'd appreciate any advice,
John


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default Why print to a file

Why print to a file?

Here's a possible example:
A coworker in a remote office with a slow dial-up connection has a huge
Excel file and wants to print her one-page report on the office printer
(\\bigserver\myprinter) near you.

She prints to THAT printer, but checks "print to file" and names the file
MyRpt.prn.

She emails that file to you.
You save the file to your C-Drive

From a DOS prompt, type the below command and press enter:
COPY /B C:\MyRpt.prn \\bigserver\myprinter

The file prints to that server

The /B effects a binary copy/paste, versus a text copy/paste, which allows
the prnter to receive all of the formatting codes embedded in the prn file.
The end result is exactly the same as if she were in the office and printed
to that printer.

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"John Hutcins" wrote:

What is the purpose of printing to a file? I have a macro that sends a
series of 1 or 2 page reports to a printer. It ties up the printer for a
long time. Can I print to a file and then route the files to the printer to
speed that up?

I've tried printing to a file, but I don't know what to do with the file
after it is created to print it.

I'd appreciate any advice,
John

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Why print to a file

Thanks, both of these answers told me what I wanted to know!

"Ron Coderre" wrote:

Why print to a file?

Here's a possible example:
A coworker in a remote office with a slow dial-up connection has a huge
Excel file and wants to print her one-page report on the office printer
(\\bigserver\myprinter) near you.

She prints to THAT printer, but checks "print to file" and names the file
MyRpt.prn.

She emails that file to you.
You save the file to your C-Drive

From a DOS prompt, type the below command and press enter:
COPY /B C:\MyRpt.prn \\bigserver\myprinter

The file prints to that server

The /B effects a binary copy/paste, versus a text copy/paste, which allows
the prnter to receive all of the formatting codes embedded in the prn file.
The end result is exactly the same as if she were in the office and printed
to that printer.

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"John Hutcins" wrote:

What is the purpose of printing to a file? I have a macro that sends a
series of 1 or 2 page reports to a printer. It ties up the printer for a
long time. Can I print to a file and then route the files to the printer to
speed that up?

I've tried printing to a file, but I don't know what to do with the file
after it is created to print it.

I'd appreciate any advice,
John

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Why print to a file

One more question. What is the correct way to do the DOS print from VBA?
I've tried

Shell("C:\WINDOWS\system32\cmd.EXE R:\my documents copy /b testtofile1
\\etc-pqc01-01\b2f3xercl1")

but this only opens a dos session and goes to R:\my Documents. It is not
exicuting the COPY command.
Thanks,
John

"Ron Coderre" wrote:

Why print to a file?

Here's a possible example:
A coworker in a remote office with a slow dial-up connection has a huge
Excel file and wants to print her one-page report on the office printer
(\\bigserver\myprinter) near you.

She prints to THAT printer, but checks "print to file" and names the file
MyRpt.prn.

She emails that file to you.
You save the file to your C-Drive

From a DOS prompt, type the below command and press enter:
COPY /B C:\MyRpt.prn \\bigserver\myprinter

The file prints to that server

The /B effects a binary copy/paste, versus a text copy/paste, which allows
the prnter to receive all of the formatting codes embedded in the prn file.
The end result is exactly the same as if she were in the office and printed
to that printer.

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"John Hutcins" wrote:

What is the purpose of printing to a file? I have a macro that sends a
series of 1 or 2 page reports to a printer. It ties up the printer for a
long time. Can I print to a file and then route the files to the printer to
speed that up?

I've tried printing to a file, but I don't know what to do with the file
after it is created to print it.

I'd appreciate any advice,
John

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
my excel is converting all my print jobs to print to file why? Ginger Excel Discussion (Misc queries) 2 April 10th 07 12:28 PM
How to format the extension less file to print with Dos's Print Command Badshah Excel Discussion (Misc queries) 0 November 28th 06 12:44 PM
Can view file in print preview, but not print layout.... kkaden Excel Discussion (Misc queries) 1 March 22nd 06 05:54 PM
print and print preview not active in file drop down Bjorne Excel Discussion (Misc queries) 2 March 21st 06 06:36 AM
How do I print from a file created from sending a print to a file Ted Johnston Excel Discussion (Misc queries) 1 February 23rd 06 03:10 AM


All times are GMT +1. The time now is 09:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"