I'm using the developer trial and calling SetFilenameOptions(hPrinter, NoPrompt) to disable the UI. So this means that the filename set will be determined by the default directory, the document title and the pdf extension. This means that I can only specify the filename through the document title.
Is there a way that I can specify the full filename and path through the document title?
This evidently does not work if I call SetDefaultDirectory(hPrinter, "") and pass "c:\\temp\\out.pdf" in the document title (the print job succeeds but there is no file named c:\temp\out.pdf). Am I doing something wrong?
Thanks in advance.
Specifying the full filename and path
Hello,
In fact, the UI is already enabled in the developer version of the PDF Converter this is why you need to use NoPrompt.
If you want to give to the output pdf file a specific name than you can use SetDefaultFileName(hPrinter,"c:\Temp\out.pdf")
and you need to add 'UseFileName' (=2) to your call of FileNameOptions.
Hope this helps.
In fact, the UI is already enabled in the developer version of the PDF Converter this is why you need to use NoPrompt.
If you want to give to the output pdf file a specific name than you can use SetDefaultFileName(hPrinter,"c:\Temp\out.pdf")
and you need to add 'UseFileName' (=2) to your call of FileNameOptions.
Hope this helps.
I was hoping to avoid using the SetDefaultFileName and use the document name to specify the full path of the filename, or some mechanism that is not specific to the amyuni API that has to be done before each print job. My application has plenty of printing infrastructure and it would be nice to utilize that without building another code path to set the default file name. Is there any way to do this?
Thanks!
Thanks!
Hi,
I advise you to send an e-mail to our support@amyuni.com with some more information about your application so they can check this and try to help you.
Have a nice day !
I advise you to send an e-mail to our support@amyuni.com with some more information about your application so they can check this and try to help you.
Have a nice day !