J
John
Hi
I wonder if someone could help me with the module below?
I use this moduel to merge data from my client database to MS Word to print
letters and stuff, however when it merges it leaves out all the menues and
icons so you only see the document alone ( the child form), can someone
please tell my what I am doing wrong?
Sorry for cross posting but was not sure where to direct this one.
Public MSWORD As Object
Public Function Print_to_Word()
Set MSWORD = CreateObject("word.basic")
With MSWORD
.FileNew Template:="", NewTemplate:=0
.Insert vbCrLf
.Insert vbCrLf
.Insert vbCrLf
.Insert vbCrLf
.Insert Clients.txtFields(0).Text & " "
.Insert Clients.txtFields(1).Text & " "
.Insert vbCrLf
.Insert Clients.txtFields(2).Text
.Insert vbCrLf
.Insert Clients.txtFields(3).Text
.Insert vbCrLf
.Insert Clients.txtFields(4).Text
.Insert vbCrLf
.Insert Clients.txtFields(5).Text
.Insert vbCrLf
.Insert Clients.txtFields(6).Text
.Insert vbCrLf
.Insert vbCrLf
.Insert Format$(Date, "DD MMMM YYYY")
.AppMaximize
End With
I wonder if someone could help me with the module below?
I use this moduel to merge data from my client database to MS Word to print
letters and stuff, however when it merges it leaves out all the menues and
icons so you only see the document alone ( the child form), can someone
please tell my what I am doing wrong?
Sorry for cross posting but was not sure where to direct this one.
Public MSWORD As Object
Public Function Print_to_Word()
Set MSWORD = CreateObject("word.basic")
With MSWORD
.FileNew Template:="", NewTemplate:=0
.Insert vbCrLf
.Insert vbCrLf
.Insert vbCrLf
.Insert vbCrLf
.Insert Clients.txtFields(0).Text & " "
.Insert Clients.txtFields(1).Text & " "
.Insert vbCrLf
.Insert Clients.txtFields(2).Text
.Insert vbCrLf
.Insert Clients.txtFields(3).Text
.Insert vbCrLf
.Insert Clients.txtFields(4).Text
.Insert vbCrLf
.Insert Clients.txtFields(5).Text
.Insert vbCrLf
.Insert Clients.txtFields(6).Text
.Insert vbCrLf
.Insert vbCrLf
.Insert Format$(Date, "DD MMMM YYYY")
.AppMaximize
End With