How to set filename and path without save dialog
How to set filename and path without save dialog
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
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?
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";
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?
-
- Posts: 286
- Joined: Wed Dec 16, 2009 12:46 pm
Re: How to set filename and path without save dialog
Please send us an email directly at [email protected] as we need more details. Thank you.