On profiles, AddProfile2 ok -> SetActiveProfile2 fails
Posted: Tue Dec 07, 2010 4:00 pm
Hi,
I have a weird situation here. AddProfile2 returns s_ok, while SetActiveProfile2 returns NV_UNKNOWN_PROFILE. Calls come one after another, as in:
NovaPDF.StartUpdateProfiles;
NovaPDF.AddProfile2(PROFILE_NAME, 0);
NovaPDF.SetActiveProfile2(PROFILE_NAME, 0);
This problem happens for the second NovaPDF printer I installed (different printer name), not for the "NovaPDF for SDK v7" printer.
Where are all the profiles stored in Registry so I can see what I have there?
Is the following true: there will always be at least one (default) profile?
If I will have only one profile in my application: is it ok to simply edit that default one (after all users will not print to PDF out of my application)?
If the above is true (could use the default one), what profile name to use in various "SetOption..." calls (the one from GetActiveProfile?)?
-zarko
I have a weird situation here. AddProfile2 returns s_ok, while SetActiveProfile2 returns NV_UNKNOWN_PROFILE. Calls come one after another, as in:
NovaPDF.StartUpdateProfiles;
NovaPDF.AddProfile2(PROFILE_NAME, 0);
NovaPDF.SetActiveProfile2(PROFILE_NAME, 0);
This problem happens for the second NovaPDF printer I installed (different printer name), not for the "NovaPDF for SDK v7" printer.
Where are all the profiles stored in Registry so I can see what I have there?
Is the following true: there will always be at least one (default) profile?
If I will have only one profile in my application: is it ok to simply edit that default one (after all users will not print to PDF out of my application)?
If the above is true (could use the default one), what profile name to use in various "SetOption..." calls (the one from GetActiveProfile?)?
-zarko