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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -