Abrir un documento word directamente

Respuesta de
a
Usuario
Como puedo abrir un documento word desde otra aplicacion.

Existe alguna manera de pasarle a Word un parametetro, para cambiar una parte del documento con el parametro pasado?

GRACIAS
Experto
Se puede abrir Word desde otra aplicación, por ejemplo desde una aplicación desarrollada en VB existe un procedimiento un poco complejo pero no tanto.

No es posible realizar el reemplazo que indicas, pero más allá de esto, los únicos parámetros admitidos desde línea de comandos son los siguientes:

Type To do this
/a Starts Word and prevents add-ins and global templates (including the Normal template) from being loaded automatically.

The /a switch also locks the setting files; that is, the setting files cannot be read or modified if you use this switch.
/laddinpath Starts Word and then loads a specific Word add-in.
/m Starts a new instance of Word without running any AutoExec macros.
/mfilen Starts Word and then opens the specified file on the Most Recently Used (MRU) list on the File menu.
/mmacroname Starts Word and then runs a specific macro. The /m switch also prevents Word from running any AutoExec macros.
/n Starts a new instance of Word with no document open. Documents opened in each instance of Word will not appear as choices in the Window menu of other instances.
/ttemplatename Starts Word with a new document based on a template other than the Normal template.
/w Starts a new instance of Word with a blank document. Documents opened in each instance of Word will not appear as choices in the Window menu of the other instances.
(no switch) A new Word window is opened with a blank document using the existing instance of the Word program.


The following Word startup (command-line) switches are not listed in Word Help.

Type To do this
/c Starts a new instance of Word and then invokes NetMeeting.
/q Starts Word without displaying the Word splash screen. This switch is only available in Word 2000 Service Release 1 (SR-1).
/r Starts Word in the background, makes changes in the Windows registry, and then quits. This switch forces a re-register of Word in the Windows registry.
/u Has no effect and does not start Word.
/x Starts a new instance of Word from the operating shell (for example, to print in Word). This instance of Word responds to only one DDE request and ignores all other DDE requests and multi-instances. If you are starting a new instance of Word in the operating environment (for example, in Windows), it is recommended that you use the /w switch, which starts a fully functioning instance.
pathname\filename Starts Starts Word with a specific document open.

NOTE: To open multiple files at once, use pathname\filename.

Example: "C:\Program Files\Microsoft Office\Office\Winword.exe" c:\filename1.doc c:\filename2.doc
(any other switch) Starts a new instance of Word. For example, if you start Word with just the / and no switch, or with any unlisted switch combination, Word just starts a new instance of Word with a new blank document.

Saludos...!!!
Usuario
LO PROBARE. GRACIAS