by lanksheard » Fri Apr 15, 2011 5:27 pm
Sorry for not making myself clear and thank you for pointing me to GetPDFFileName, as yes it is the Save As dialog that I'm referring to.
Let me try again. Our application 'Foo' as an example may have 3 pages from 'Foo' 4 pages from a WORD document then 3 pages from 'Foo'
To the user this appears as one print job. We have the case where the user selects a physical printer working; ‘Foo’ switches the printer to novaPDF and provides a temporary file name and other options to novaPDF. Then novaPDF collects all the 10 pages, from the jobs described above, into temporary PDF then ‘Foo’ prints that PDF to the printer the user selected. The print jobs are handled this way so, in the case of a duplex printer the back sides of will be used between the print jobs.
Now in the case where the user selects novaPDF as the desired printer ‘Foo’ lets the novaPDF dialog come up. Now here’s where we would like ‘Foo’ to get the options that the user selected, because we would like to turn off ‘Open PDF with default viewer’ and get the name of the PDF file, before any print has gone to novaPDF. ‘Foo’ can then turn on ‘Open PDF with default viewer’ if the user selected on the last part of the print job, so that this works as the user would expect.
I hope this makes it a little clearer.
Thanks.