Advertisement
Guest User

PublishDocument

a guest
Nov 1st, 2017
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '---------------------------------------------------------------------------------------------------------------
  2. ' Author        :   martin.mueller@mum.ch
  3. ' Description   :   Registers the specified objDoc at the publisher for the specified strJobId with the specified
  4. '               :   strMergeId
  5. ' objDoc        :   The document to register.
  6. ' strJobId      :   The name of the job to process.
  7. ' strMergeId    :   The id of a set of documents whose pdfs are merged into one single pdf.
  8. '---------------------------------------------------------------------------------------------------------------
  9. Sub PublishDocument(objDoc, strJobId, strMergeId)
  10.     Dim objPublisher
  11.     'Create the script object.
  12.     Set objPublisher = New PublisherScriptObject
  13.     'Register the selected document for publishing.
  14.    Call objPublisher.Queue.RegisterDocument("", strJobId, objDoc.ID, objDoc.VersionID, , strMergeId, , , Nothing)
  15.     'Release the script object.
  16.     Set objPublisher = Nothing
  17. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement