System
.
InvalidOperationException was unhandled
HResult=-
2146233079
Message=Conversion job settings cannot be changed after items have been added
to
the job.
Source=Microsoft
Office
Word
Server
StackTrace:
at Microsoft
Conversions
ConversionJobSettings
set_OutputFormat(SaveFormat value)
at WordAutomationService
Program
Main(String[] args)
in
at System
AppDomain
_nExecuteAssembly(RuntimeAssembly assembly, String[] args)
VisualStudio
HostingProcess
HostProc
RunUsersAssembly()
Threading
ExecutionContext
RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
Run(ExecutionContext executionContext, ContextCallback callback, Object state)
ThreadHelper
ThreadStart()
1.
cJob.AddLibrary(sourceList, destList);
2.
ConversionJobSettings settings = rahulJOb.Settings;
3.
settings.OutputFormat = SaveFormat.PDF;
4.
cJob.Start();
Naomi N edited Original. Comment: Title case