Results 1 to 4 of 4

Thread: Naming a PDF file?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2002
    Posts
    158

    Question Naming a PDF file?

    I have a program in which I have created a PrintDocument object to print the form as PDF. Works just fine. Question: Is there some code I can add which will provide a default name for the pdf file that is created?

  2. #2

  3. #3
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,370

    Re: Naming a PDF file?

    You can specify the DocumentName Property which will suggest the filename that the document should be saved as.

    But if you're talking about the title of the document, that is out of your control. The DocumentName may or may not set the PDF's title metadata, that is completely dependent on the driver if you're using Print As PDF.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    May 2002
    Posts
    158

    Re: Naming a PDF file?

    Thanks - after some more digging, I figured out that DocumentName is what I wanted.

Tags for this Thread

Posting Permissions

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



Click Here to Expand Forum to Full Width