Hi David,
You do have the correct syntax (and the missing space between ," after the last false shouldn't matter). Are you getting an error message of some kind?
Can you share any of the other code leading up to this line (and a few lines that follow)? As well, have you tried removing the password from the document (and the last four parameters of the .Open call) to see whether it will open the document?
If it still doesn't open maybe you have something else going on in your code prior to this statement. I apologize if I'm stating obvious things you've already validated but, maybe it can't find the document, maybe the wrong password!?
Regards...Mark
Message: PowerBuilder Runtime Error: 35 at Line: 59 in Object: w_sm08a_case_plan4 Event/Function: ue_worddoc_validations Text:
Error calling external object function open at line 59 in ue_worddoc_validations event of object w_sm08a_case_plan4.
Just the ole create and connection, is the line before it. Open does work if I only pass the file name but it prompts for the password.
iole_word = Create OleObject
li_RC = iole_word.ConnectToNewObject("word.application")
li_rc = iole_word.documents.open("filename", true, false, false, "passwordhere")