Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / May 2006

Tip: Looking for answers? Try searching our database.

Non standard suffix to prn files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dudley - 07 May 2006 13:59 GMT
I have to produce print files with the suffix ".MEM". I have found that if I
put in filename XYZ.MEM I get XYZ.MEM.prn, but I can get round this by
printing to file, selecting the correct folder and entering file name in
quotes "XYZ.MEM". I would like to automate this for the user entering the
full location c:\my folder\"XYZ.MEM", but this is rejected as an invalid file
name. Can anyone suggest a way round this problem?

Thanks
Dudley
Jonathan West - 07 May 2006 14:09 GMT
>I have to produce print files with the suffix ".MEM". I have found that if
>I
[quoted text clipped - 4 lines]
> file
> name. Can anyone suggest a way round this problem?

You automate this using the Printout method. Set the OutputFileName
parameter to the full pathname of the file including the filename extension,
"c:\my folder\XYZ.MEM" in your example, and set PrintToFile to True

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org

Dudley - 07 May 2006 15:48 GMT
Thanks for that. I had actually done what you suggested, but I had only
looked at the result when I did 'record macro', and the filename was
'.MEM.prn'. When I do 'run macro' it comes out OK as '.MEM'.

Regards
Dudley

> >I have to produce print files with the suffix ".MEM". I have found that if
> >I
[quoted text clipped - 8 lines]
> parameter to the full pathname of the file including the filename extension,
> "c:\my folder\XYZ.MEM" in your example, and set PrintToFile to True
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.