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?
Printable View
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?
Oops, wrong sub-forum
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.
Thanks - after some more digging, I figured out that DocumentName is what I wanted.