Jump to content

Abrir Doc.


Mica
 Share

Recommended Posts

Imports Microsoft.Office.Interop.Word
....
Dim MSWord As New Application
        Dim WordDoc As New Word.Document  ----- Erro aqui
        WordDoc = MSWord.Documents.Open("C:\Documents and Settings\Mica\Ambiente de trabalho\Pap_ProCheff\Manual de Utilizador.doc")

       
        MSWord.WindowState = Word.WdWindowState.wdWindowStateNormal   ----- Erro aqui
        MSWord.Visible = True

O que estou a fazer de errado?

Link to comment
Share on other sites

Imports Microsoft.Office.Interop.Word
....
Dim MSWord As New Application
        Dim WordDoc As New Word.Document  ----- Erro aqui   type 'word.document' not defined
        WordDoc = MSWord.Documents.Open("C:\Documents and Settings\Mica\Ambiente de trabalho\Pap_ProCheff\Manual de Utilizador.doc")

       
        MSWord.WindowState = Word.WdWindowState.wdWindowStateNormal   ----- Erro aqui name Word not declareated
        MSWord.Visible = True

O que estou a fazer de errado?

uhuhuh descobri uma melhor forma de fazer isso

Process.Start("C:\Documents and Settings\Mica\Ambiente de trabalho\Pap_ProCheff\Manual de Utilizador.doc")

Mas já agora queria saber a solução para aquilo ^^

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.