Article View: adobe.acrobat.reader.pocketpc
Article #23Re: parameter for acrobat reader 1.0
From: Alberto_Cricca
Date: Thu, 29 Jul 2004 10:07
Date: Thu, 29 Jul 2004 10:07
14 lines
2112 bytes
2112 bytes
Dave,
my application allows the user to open files (".doc", ".txt", ".pdf", etc.) by tapping on the associated item in a ListView control.
Shelling to file explorer allows file to be opened relying on the registry content to run the proper "viewer".
It also has an interesting fallback: if you open a ".doc" or a ".txt" file invoking Shell ("\Windows\pword.exe", FILENAME), when the user taps on the "ok" button, Pocket Word closes the document and shows the full doc list (Pocket Word remains the "foreground" application)
Calling Shell ("\Windows\fexplore.exd", FILENAME) makes Pocket Word MINIMIZED WHEN THE USER TAPS ON THE "ok" BUTTON. The "foreground" application is now "File explorer".
Calling SetWindowPos just after the Shell function invocation with the "File explorer" window handle (retrieved by enumerating windows) and my application window handle as parameters modifies the window z-order and makes my application become the "foreground" application when Pocket Word gets minimized.
Despite of my efforts, I was not able to open more than ONE pdf file running acrord32.exe (that's the reason why I asked if you had find a way to terminate Acrobat process). I restored the opendoc registry key allowing PDF files to be opened by "ClearVue PDF Reader".
Everything is working fine.
Once again thanks for your help.
Technical Details
Message-ID:
<3bb3d8ff.12@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<3bb3d8ff.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: 1012e1,387386798ad293dd X-Google-Attributes: gid1012e1,public X-Google-Language: ENGLISH,ASCII-7-bit From: Alberto_Cricca@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.acrobat.reader.pocketpc Subject: Re: parameter for acrobat reader 1.0 Message-ID: <3bb3d8ff.12@webx.la2eafNXanI> Date: Thu, 29 Jul 2004 03:07:44 -0700 References: <3bb3d8ff.-1@webx.la2eafNXanI> Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit