Hi,
I am using Powerbuilder 7.0.3. I want to open a word document in readonly mode to suppress this MS Word pop window:
-----
"<Filename> is locked for editing" with 3 buttons, namely, ReadOnly, Notify, and Cancel
-----
I have the following script:
oleobject ole_doc
ole_doc = create oleobject
ls_path = "k:\mymessage.doc"
ole_doc.ConnectToNewObject("word.application.8" = 0 THEN
ole_doc.application.Documents.Open(ls_path,False,True)
ole_doc.Visible = FALSE
Alternatively, I also tried the script:
ole_doc.documents.open(ls_path,false,true)
However which way, the MS Word popup message(indicated above) is still appearing.
Can anyone please tell me what else I'm missing?
Thanks.
I am using Powerbuilder 7.0.3. I want to open a word document in readonly mode to suppress this MS Word pop window:
-----
"<Filename> is locked for editing" with 3 buttons, namely, ReadOnly, Notify, and Cancel
-----
I have the following script:
oleobject ole_doc
ole_doc = create oleobject
ls_path = "k:\mymessage.doc"
ole_doc.ConnectToNewObject("word.application.8" = 0 THEN
ole_doc.application.Documents.Open(ls_path,False,True)
ole_doc.Visible = FALSE
Alternatively, I also tried the script:
ole_doc.documents.open(ls_path,false,true)
However which way, the MS Word popup message(indicated above) is still appearing.
Can anyone please tell me what else I'm missing?
Thanks.