How to set filename and path without save dialog

Post here any questions/suggestions you have about novaPDF SDK or novaPDF OEM.
Post Reply
MarcoW
Posts: 1
Joined: Tue May 12, 2020 12:50 pm

How to set filename and path without save dialog

Post 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?

Claudiu (Softland)
Posts: 255
Joined: Wed Dec 16, 2009 12:46 pm

Re: How to set filename and path without save dialog

Post by Claudiu (Softland) »

Please send us an email directly at support@novapdf.com as we need more details. Thank you.

Post Reply