c++ - How to programmatically provide destination file path for printer added to the FILE port? -


using addprinter(), have added printer configuring port "file".

now whenever choose printer when printing, opens file browser asking path save document file (like following).

enter image description here

i want provide path programmatically, hard coding path won't pop on selecting particular printer printing.

how can achieve this? please provide valuable suggestions.

use addport winapi function. add new local port , use path file port name. attach printer. printout document. enjoy it. disadvantage: new job overwrite previous.


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -