F
Faisal
I am trying to print data from an access form to a word
template, here is my code:
Dim ObjWord As Object
Dim StrDate, StrAmount, StrPayee, StrMemo, StrAmountText,
StrRemainAmount, StrFullAmount, StrRemainAmountText,
StrFullAmountText As String
On Error GoTo ErrorHandler_1
Set ObjWord = CreateObject("Word.Application")
ObjWord.Visible = True
ObjWord.Documents.Add
Template:="C:\Faisal\cheque_template.dot"
ObjWord.ActiveDocument.PrintOut
'Do While ObjWord.BacgroundPrintingStatus > 0
'Loop
ObjWord.Quit wdDoNotSaveChanges
Set ObjWord = Nothing
please help, I am also hooked up on a network printer
right now, is that creating a conflict?
please advise?
template, here is my code:
Dim ObjWord As Object
Dim StrDate, StrAmount, StrPayee, StrMemo, StrAmountText,
StrRemainAmount, StrFullAmount, StrRemainAmountText,
StrFullAmountText As String
On Error GoTo ErrorHandler_1
Set ObjWord = CreateObject("Word.Application")
ObjWord.Visible = True
ObjWord.Documents.Add
Template:="C:\Faisal\cheque_template.dot"
ObjWord.ActiveDocument.PrintOut
'Do While ObjWord.BacgroundPrintingStatus > 0
'Loop
ObjWord.Quit wdDoNotSaveChanges
Set ObjWord = Nothing
please help, I am also hooked up on a network printer
right now, is that creating a conflict?
please advise?