dcsimg
Results 1 to 2 of 2

Thread: PrintOut Window for Rename

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2019
    Posts
    1

    PrintOut Window for Rename

    This is my code :

    Code:
    Set objWord = CreateObject("Word.Application")
    Set net = WScript.CreateObject("WScript.Network")
    Set objDoc = objWord.Documents.Open("C:\Users\"+net.username+"\Desktop\Test.docx")
    objWord.ActivePrinter = "Microsoft Print To PDF" 
    objWord.PrintOut
    I have a window that appears to name the new file(.pdf).
    I would like rename automatically my file without this window.
    Could i do this through VBS please?

  2. #2
    Frenzied Member jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    1,331

    Re: PrintOut Window for Rename

    The following links might be useful:

    https://stackoverflow.com/questions/...-pdf-in-delphi

    https://stackoverflow.com/questions/...to-pdf-printer

    https://social.technet.microsoft.com...tup?forum=ITCG


    PrinterFileName appears be the name of the setting where you would specify the output file name.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width