Printing using Shell/ddeexec

Printing using Shell/ddeexec

Post by Kira » Fri, 04 Jul 2003 20:00:51



How to print using the shell/ddeexec which looks something
like "[FileOpen("%1")][FilePrint 0][FileExit 2]" for MS-
word doc. Its shell command is
"C:\Program Files\Microsoft Office\Office10
WINWORD.EXE" /x /n /dde
 
 
 

Printing using Shell/ddeexec

Post by Jian-Shen Lin[M » Sat, 05 Jul 2003 17:19:53


Change this:

        [HKEY_CLASSES_ROOT\Word.Document.8\shell\print\command]

        "C:\Program Files\\Microsoft Office\\Office\winword.exe\" /x

To this:

        [HKEY_CLASSES_ROOT\Word.Document.8\shell\print\command]

        "C:\\Program Files\\Microsoft Office\\Office\\winword.exe\" /n

And change this:

        [HKEY_CLASSES_ROOT\Word.Document.8\shell\print\ddeexec\ifexec]

        [FileOpen("\%1\")][FilePrint 0][FileExit 2]

               (I have not been able to verify if the slashes are needed,
mine
do not have the slashes)

To this:

        [HKEY_CLASSES_ROOT\Word.Document.8\shell\print\ddeexec\ifexec]

        [FileOpen("\%1\")][FilePrint 0][DocClose 2][AppMinimize]            

              (I have not been able to verify if the slashes are needed,
mine
do not have the slashes)

You also need to do this for Word.RTF.8, Word.Template.8, Word.Backup.8.

However, THERE IS A BETTER WAY.  Write a simple macro that can be launched
from
within Word or that chooses to invoke Word via OLE Automation. Have that
macro
loop through a directory of files and open and print each of them in
sequence.
This is the most efficient way to do this, and it guarantees that only one
instance does the work.

================================================================

The commands for Word 95 would be:

Change this:

        [HKEY_CLASSES_ROOT\Word.Document.6\shell\print\command]

        "C:\\MSOffice\\Winword\\winword.exe\" /x

To this:

        [HKEY_CLASSES_ROOT\Word.Document.6\shell\print\command]

        "C:\\MSOffice\\Winword\\winword.exe\"  /n

And change this:

        [HKEY_CLASSES_ROOT\Word.Document.6\shell\print\ddeexec\ifexec]

        [FileOpen("%1")][FilePrint 0][FileExit 2]

To this:

        [HKEY_CLASSES_ROOT\Word.Document.6\shell\print\ddeexec\ifexec]

        [FileOpen("%1")][FilePrint 0][DocClose 2][AppMinimize]

Thanks

Jian Shen

This posting is provided "AS IS" with no warranties, and confers no rights.

 
 
 

1. Using film scanners for printing on printing press ?

Many users scans on film scanners for printing on printers. But
anybody use film scanners for printing on a printing press?
Please advise. I know that drum scanner is the best choice, but, maybe
somehow film scanners could be a good substitute? Which models under
1000$ could be better on such a task?
Thank you in advance.
(Excuse me my poor English)

Claudiu

2. Adding 3.5" HD to A1200

3. Visual Basic Application to print a range using a print command

4. sys$print queue constantly stopping

5. printing from DOS Shell

6. Atari 1040ST->PC Help!!!

7. make CPAN::Shell->i; print to a filehandle

8. Help! Themes Disappearing

9. SHELL EXECUTE FOR PRINTING

10. Shell Extention - printing

11. PKZIP locking up under DOS Shell from Windows using SQLWindows

12. using target Shell

13. How do I assign values to a two dimensional array using the vxWorks shell?