Hi all,
Can someone maybe tell me what I've done wrong below? I thought I had the coding right, but when I specify the path and specify a printer name I get "Run-time error 10, Unable to print the document."
I thought I had the VB correct?
Private Sub Document_Open()
Dim Doc As Document
Set Doc = Application.Documents.Item(1)
Doc.Refresh
Doc.Save
Doc.PrintOut ("\\Path to Our Server\Our Printer"
Application.Quit
End Sub
Any thoughts? My ultimate goal is to NOT specify the printer at all, but rather have it print to whichever printer is set as the default.
Running BO 5.1.2 in a Citrix environment on NT servers.
Can someone maybe tell me what I've done wrong below? I thought I had the coding right, but when I specify the path and specify a printer name I get "Run-time error 10, Unable to print the document."
I thought I had the VB correct?
Private Sub Document_Open()
Dim Doc As Document
Set Doc = Application.Documents.Item(1)
Doc.Refresh
Doc.Save
Doc.PrintOut ("\\Path to Our Server\Our Printer"
Application.Quit
End Sub
Any thoughts? My ultimate goal is to NOT specify the printer at all, but rather have it print to whichever printer is set as the default.
Running BO 5.1.2 in a Citrix environment on NT servers.