Unable to set AutoSave setting through COM API

I am trying to set AutoSave settings through COM API:

printJob.SetProfileByGuid(“DefaultGuid”);
printJob.SetProfileSetting(“AutoSave.Enabled”, “true”);
printJob.SetProfileSetting(“AutoSave.TargetDirectory”, targetDirectory);

The above settings are not working and I am getting the error: 'Invalid property name"

Could some one please tell me how to set these settings?

Hi,

you can’t set autosave options for the COM workflow, as you always need to use ConvertTo(path) which includes the full path for the file. This will save the converted file to the defined path without displaying any dialogs to the user.

Best regards,

Robin