Way to default the name of the generated XPS file?

后端 未结 3 2023
遇见更好的自我
遇见更好的自我 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:45

    The Microsoft XPS Document Writer (MXDW) will generate an output file path without prompting the user if the application that prints sets lpszOutput in DOCINFO.

    If you don't have access to the code of the application then another option is to build an XPS driver that generates a file path even when lpszOutput hasn't been set. The Windows Driver Kit (WDK) is the place to start.

    For more details and links see this post.

提交回复
热议问题