Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BackEnd Printing in lotusscript 1

Status
Not open for further replies.

domino1352

IS-IT--Management
Nov 20, 2002
40
AU
is it possible if so how..
 
ended up doing the following Still need UI but it updates a flag for printing...

Sub Initialize
Dim workspace As New notesuiworkspace
Dim uidoc As notesuidocument
Dim session As New NotesSession
Dim uiview As NotesUIView
Set uiview = workspace.Currentview
Dim db As NotesDatabase
Dim collection As NotesDocumentCollection
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set collection = db.UnprocessedDocuments
Print "Marking " + Cstr(collection.Count) + " Documents"
For i = 1 To collection.Count
Set doc = collection.GetNthDocument(i)
doc.printedbeta = "Printed"
Call doc.Save(True,False)
Next
Print "Printing " + Cstr(collection.Count) + " Documents"
Call uiview.Print()
end sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top