Way to default the name of the generated XPS file?

后端 未结 3 2022
遇见更好的自我
遇见更好的自我 2021-02-20 13:53

If a user prints a report, and they happen to be using the Microsoft XPS printer, i would like the default the filename to something meaningful.

i would

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-20 14:50

    Win2PDF 7 can save as XPS, and does default to the name of the print job. If you don't want to use the print job as the name displayed in the File Save dialog, you can change the default file name by setting a registry value named "PDFTitle".

    You can also set the output file without prompting either using the lpszOutput field of DOCINFO, or by setting a registry setting named "PDFFileName" as described in the Win2PDF documentation. The file will be created in the XPS format if the file name contains an .xps extension.

提交回复
热议问题