Getting a file to open it or print it directly can be done using both the “code” and “design” method, which is given below the related description.

bpmAppService.BPMSServices.DmsService.GetWordFormat (input1, input2, input3, input4);
input1: file name
input2: application name
input3: True or false
input3: True or false
Output: String