PDA

Click to See Complete Forum and Search --> : WORD Aplicattion Object


pcorredor
Mar 21st, 2001, 07:15 AM
Hi everybody

I need receive help with this problem, I have any aplicattion where i used an Aplicattion Object for MS-Word program, thsi aplicattion works very well when the aplicattion Object it´s in the Server Side, but I don´t leave this Object in the server side.

When the aplicattion Object is generete in the Client Side in any machines occurs an error, ¿How I can know what components or librarys or whatever need in the client machine?, ¿How I can manage the machines without MS-WORD?, ¿What is wrong?

this is my code

sub VacacionesInd
msgbox "Generando...."
Set objword = CreateObject("Word.Application")
set objdoc = CreateObject("Word.document")
Filename = "path \\vacacionesInd.dot"
Set objdoc = objword.Documents.Add(filename)
objdoc.Bookmarks("FechaSol").Range.Text = "<%=Fecha%>"
objdoc.Bookmarks("codigo").Range.Text = "<%=trim(codigo)%>"
.
.
.
.
objdoc.Bookmarks("DiasTiE").Range.Text = "<%=EDiasTiempo%>"
objdoc.Bookmarks("Observaciones").Range.Text = "<%=Observaciones%>"
objdoc.printout
Msgbox "Su Reporte ha sido impreso. Por favor verifique en la impresora
configurada en su máquina.!!"
objdoc.Close False
objword.Quit False
Set objdoc = Nothing
Set objword = Nothing
end sub


Please forgive my English, I know is very bad

nybble
Mar 21st, 2001, 04:53 PM
beats the hell outta mean.

you are setting the content type to a word file right?