0
votes

I use MFC and understand how skip configuration menu (set pInfo->m_bDirect to false). But I want set folder and filename programmatically without special dialog. If it is impossible, can you advice me pdf printer with this functionality(may be changing configuration file for this goal)

what are you printing? It might be easier to just generate a PDF directly rather than going through a PDF printer? - jwezorek
It is easy but not :-) The default port as you know is portprompt which does that i.e. it prompts for the output port so you select a folder and file as a surrogate printer port. So the easy bit is set port to a fixed filename. Next question is how do I program it not to be a fixed filename. thats the but not. You can either assign in some applications Like WordPad command line printing, it be assigned variable at run time. But for an MFC app that could be more difficult, unless you invoke PrintUI calling to keep resetting the port name or use a port redirector. - K J