Page 1 of 1

How to set filename and path without save dialog

Posted: Tue May 12, 2020 1:05 pm
by MarcoW
Hello,

i'm evaluating the novapdf sdk and trying to generate pdf via c++ (win api calls).
So i take a look at the hello world example.

The filename there is passed in DOCINFO structure, and the save dialog will appear which suggest the user documents folder.
My question is, how can i achieve to not show the save dialog and pass a complete path and filename for pdf?

I have tried with

Code: Select all


.
.
.

//what type of save dialog to be shown (none, simple or extended)
pNova->SetOptionLong(NOVAPDF_SAVE_PROMPT_TYPE, PROMPT_SAVE_NONE);

pNova->SetOptionLong(NOVAPDF_SAVE_FOLDER_TYPE, SAVEFOLDER_CUSTOM);
.
.
.

docinfo.lpszDocName = "D:\\test\\mydoc.pdf";

but then i'm getting error the path is wrong.

I need to dynamic change the path and filename.
I call StartDoc end EndDoc repetitive and every EndDoc is a new pdf.

In novaPDF the rules for folder and filename are stored in the profile settings? So i have to change the profile every time before the call to StartDoc?

Re: How to set filename and path without save dialog

Posted: Wed May 13, 2020 1:06 pm
by Claudiu (Softland)
Please send us an email directly at support@novapdf.com as we need more details. Thank you.