Skip to main content
Participant
April 28, 2017
質問

Adobe Reader Javascript Open .DOC

  • April 28, 2017
  • 返信数 5.
  • 2652 ビュー

I just tried to many code from internet to open automatically .doc which are attached in PDF but i get this : "Cannot open type of application/msword"

I tried this:

var oDoc = openDataObject("image.doc"); console.println(oDoc.path);

I tried to find another function which are specify the type of the document and to can open it in Microsoft Word!

Regards

このトピックへの返信は締め切られました。

返信数 5

Legend
April 29, 2017

Sorry, wrong message. Actually you never said that options 1 and 2 gave this error. You said specifically that openDataObject gave the error.

Still, if you get an error, why would you try to fix it by using an option which is clearly documented as NOT doing what you want?

Legend
April 29, 2017

Well, it is the weekend now. But Photoshop 6.0 doesn't need activation. Do you mean Photoshop CS6?

try67
Community Expert
Community Expert
April 29, 2017

Wrong thread?

Legend
April 29, 2017

Since the documentation says that 0 means DO NOT LAUNCH, that at least is expected.

joshb25850528作成者
Participant
April 29, 2017

I know but as I told you I have used 1 and 2 but are not opening it I get only this error: " Cannot open this file type application/msword"

Bernd Alheit
Community Expert
Community Expert
April 29, 2017

Can you open the attachment manually in Adobe Acrobat?

Legend
April 29, 2017

Why nLaunch:0 ?

joshb25850528作成者
Participant
April 29, 2017

Because if I use nLaunch:1 or nLaunch:2 nothing happend...

try67
Community Expert
Community Expert
April 29, 2017

nLaunch: 2 should work, even for non-PDF files, although the user will be presented with a security warning.

Legend
April 28, 2017

Seems clear from the documentation that this method is only for PDF. I am inclined to agree that there is no method to do what you want; even automatic extraction has been blocked for a decade. But you may be able to extract the attachment, prompting the user for the location, and have it automatically launch, if that function still works.

joshb25850528作成者
Participant
April 29, 2017

I have done it the

this.exportDataObject({ cName: "image.doc", nLaunch: 0 }); and is exported for the user but I cannot launch automatically because I cannot find the javascript command to launch it!