Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PrintOut Method

Status
Not open for further replies.

girishpde

Programmer
Dec 2, 2001
13
IN
Hi,

I am using printout method to save MsWord files into .prn
fles. The problem is it's working ( creating .prn files )
while I dubug the macro, but when I run the macro, it's
not working all I get is 0 bytes prn files.
Here is the code I am using.

Application.PrintOut Append:=False,
OutputFileName:=sPath & Mid(sName, 1, Len(sName) - 4)
& ".prn", PrintToFile:=True, FileName:=sPath & sName

I am using Win2k and office 97
Thanks in advance.
Girish.
 
Try activedocument.printout, or documents("...").printout. I suspect the problem is the state of Word when you execute the macro.
Rob
[flowerface]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top