I'm looking for a PDF printer that doesn't ask the user to choose a filename and directory, but simply saves it开发者_JS百科 to a predefined folder with a unique filename.
Thx.
The PDFsharp .Net libraries allow you to create PDF documents without user intervention, and the System.IO.Path.GetTempFilename()
function can give you a unique filename to write out to (though I think it appends a .tmp extension which you may want to change)
A PDF printer is normally just a print driver. It's up to individual applications what dialogs they will display. You could always write your own program that doesn't prompt users.
精彩评论