Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Adobe Reader Javascript Open .DOC

New Here ,
Apr 28, 2017 Apr 28, 2017

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

2.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 28, 2017 Apr 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 29, 2017 Apr 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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 29, 2017 Apr 29, 2017

Why nLaunch:0 ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 29, 2017 Apr 29, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 29, 2017 Apr 29, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 29, 2017 Apr 29, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 29, 2017 Apr 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"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 29, 2017 Apr 29, 2017

Can you open the attachment manually in Adobe Acrobat?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 30, 2017 Apr 30, 2017
LATEST

Yes manually  I can open it, but if I use nLaunch: 1 and nLaunch: 2 I get that error is not opening!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 29, 2017 Apr 29, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 29, 2017 Apr 29, 2017

Wrong thread?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 29, 2017 Apr 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines