Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Opening pdf files in Agent

124 views
Skip to first unread message

Stuart Johnson

unread,
Sep 21, 2016, 1:20:15 PM9/21/16
to
Need some help with opening pdf files within Agent please (Win 7 &
Agent 8/1272)

When I click to open a pdf attachment the reader opens but displays a
message that the file cannot be found. I can open the file fine
outwith agent.

I guess a setting needs to be tweaked?

Thanks.
--
Stuart Johnson, Peterhead, Scotland
To reply direct remove FILTER from
stu...@stannsulynFILTER.org.uk

Ralph Fox

unread,
Sep 21, 2016, 2:50:18 PM9/21/16
to
On Wed, 21 Sep 2016 18:19:36 +0100, Stuart Johnson wrote:

> Need some help with opening pdf files within Agent please (Win 7 &
> Agent 8/1272)
>
> When I click to open a pdf attachment the reader opens but displays a
> message that the file cannot be found. I can open the file fine
> outwith agent.
>
> I guess a setting needs to be tweaked?


This is one way...

1. Go to "Tools >> Options >> URL and MIME Settings >> MIME Types"
2. If Agent's settings already have a MIME Type "application/pdf",
then go to step 4.
3. Click the "Add" button and add a new MIME type/subtype
Type: application
Subtype: pdf
4. Now select the row for application/pdf
5. While application/pdf is selected
5.1 Enter pdf in the 'Extensions' box
5.2 Enter the following in the 'Application' box,
including all four quote marks shown.

"C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" "%1"

Use the correct path to AcroRd32.exe on your computer.


I can't see whether you currently have an 'Application' set in Agent's
MIME types for pdf, or whether Agent is using the equivalent setting
in the Windows registry. The error message suggests that the setting
used (whichever it is) is missing the quote marks around the "%1".


--
Kind regards
Ralph
🦊

Stuart Johnson

unread,
Sep 21, 2016, 3:40:41 PM9/21/16
to
On Thu, 22 Sep 2016 06:50:00 +1200, Ralph Fox <-rf-nz-@-.invalid>
wrote:


>This is one way...

snipped

Hi Ralph

I think I have what you outlined in your reply, but I am still seeing
the error message.

I am attaching screen grabs of the settings I have.

Stuart Johnson

unread,
Sep 21, 2016, 3:58:50 PM9/21/16
to
On Thu, 22 Sep 2016 06:50:00 +1200, Ralph Fox <-rf-nz-@-.invalid>
wrote:

>This is one way...
>
>1. Go to "Tools >> Options >> URL and MIME Settings >> MIME Types"
>2. If Agent's settings already have a MIME Type "application/pdf",
> then go to step 4.
>3. Click the "Add" button and add a new MIME type/subtype
> Type: application
> Subtype: pdf
>4. Now select the row for application/pdf
>5. While application/pdf is selected
> 5.1 Enter pdf in the 'Extensions' box
> 5.2 Enter the following in the 'Application' box,
> including all four quote marks shown.
>
> "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" "%1"


Ralph, thanks for the reply.

Yes, I have exactly that

>I can't see whether you currently have an 'Application' set in Agent's
>MIME types for pdf, or whether Agent is using the equivalent setting
>in the Windows registry. The error message suggests that the setting
>used (whichever it is) is missing the quote marks around the "%1".

MIME type is set for pdf, and Acrobat is set as the default in the
Registry.

Ralph Fox

unread,
Sep 21, 2016, 8:11:21 PM9/21/16
to
On Wed, 21 Sep 2016 20:39:54 +0100, Stuart Johnson wrote:

> Hi Ralph
>
> I think I have what you outlined in your reply, but I am still seeing
> the error message.
>
> I am attaching screen grabs of the settings I have.


I do not see your screen grabs.

Many users will not see your screen grabs, because many news servers
drop binaries in text groups like this one.

I suggest you upload your attachment to someplace like imgur.com or
tinypic.com, and post a link here.


--
Kind regards
Ralph
🦊

Ralph Fox

unread,
Sep 21, 2016, 8:24:09 PM9/21/16
to
A. Perhaps the Registry is missing the quote marks around the "%1", as
I suggested in my previous message. You would have to use regedit
to see the actual command line string in the Registry.

B. Alternatively, perhaps Agent's 'Temporary folder for launching
attached files' is in a protected location such as
"C:\Program Files (x86)\Agent\Data\temp". That is also likely to
cause this kind of problem when launching attachments.


--
Kind regards
Ralph
🦊

Ralph Fox

unread,
Sep 22, 2016, 4:38:50 AM9/22/16
to
On Thu, 22 Sep 2016 09:44:59 +0200, Martin wrote:

> On Thu, 22 Sep 2016 12:24:14 +1200, Ralph Fox <-rf-nz-@-.invalid> wrote:
>
>> A. Perhaps the Registry is missing the quote marks around the "%1", as
>> I suggested in my previous message. You would have to use regedit
>> to see the actual command line string in the Registry.
>
> What is the function of %1 ?


%1 is replaced with the file path/name when the associated
program is run.

Most always the %1 should be in quotes, i.e. "%1".
You cannot be certain that the file path/name will not
contain a space.


BTW if you want some good technical reading, see
https://msdn.microsoft.com/en-us/library/windows/desktop/cc144101(v=vs.85).aspx


--
Kind regards
Ralph
🦊

Stuart Johnson

unread,
Sep 22, 2016, 12:55:16 PM9/22/16
to
On Thu, 22 Sep 2016 12:11:26 +1200, Ralph Fox <-rf-nz-@-.invalid>
wrote:

>I do not see your screen grabs.
>
>Many users will not see your screen grabs, because many news servers
>drop binaries in text groups like this one.
>
>I suggest you upload your attachment to someplace like imgur.com or
>tinypic.com, and post a link here.

Sorry, I wondered about that as soon as I sent the message!

They are here.

http://tinypic.com/r/11lu8np/9

http://tinypic.com/r/bgzpc3/9

Ralph Fox

unread,
Sep 23, 2016, 7:17:52 PM9/23/16
to
On Thu, 22 Sep 2016 17:54:32 +0100, Stuart Johnson wrote:

> Sorry, I wondered about that as soon as I sent the message!
>
> They are here.
>
> http://tinypic.com/r/11lu8np/9


The settings in this screen grab will not help with opening
attached pdf files.

The "URL Types" settings are for opening _links_, not files.
And the "acrobat: URL:Acrobat Protocol" setting is for opening
links like acrobat:yaddayadda which begin with "acrobat:".

You are unlikely to encounter a real link which begins with
"acrobat:". But if you do, those "URL Types" settings are incorrect.
The "URL Types" settings for URL type "acrobat:" are:

Application (#1) .... "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" / u "%1"
Use DDE ............ checked
DDE Message ........ [HandleAcroURL("%1")]
Application (#2) .... AcroViewR10 **** BUT SEE NOTE
Topic .............. Control
Method ............. Execute

The value in the second 'Application' box depends on your version of
Acrobat. But whatever version is, the value is not the same as the
first 'Application' box. The second 'Application' box is not a
command line.

Having the wrong value in 'DDE Message', 'Application' (#2), or
'Topic' can mean that the link does not open when Acrobat is already
running. It is better to uncheck "Use DDE" when one does not have
the correct values to go in 'DDE Message', 'Application' (#2), and
'Topic'.



> http://tinypic.com/r/bgzpc3/9


For PDF files, the MIME Type/Subtype and Extension settings in this
screen grab look correct. I cannot see the full 'Application'
setting, so I cannot confirm that it is correct. It does, however,
appear as if it might not have all four "quote marks".


As per my other reply: If Agent's 'Temporary folder for launching
attached files' is inside "Program Files" or "Program Files (x86)",
then that too can cause problems launching types of attachments.
I suggest checking the setting at
"Folder >> Default Properties >> Receiving Messages >> Attachment Folders".


--
Kind regards
Ralph
🦊

Stuart Johnson

unread,
Sep 28, 2016, 12:51:25 PM9/28/16
to
On Sat, 24 Sep 2016 11:17:58 +1200, Ralph Fox <-rf-nz-@-.invalid>
wrote:


>As per my other reply: If Agent's 'Temporary folder for launching
>attached files' is inside "Program Files" or "Program Files (x86)",
>then that too can cause problems launching types of attachments.
>I suggest checking the setting at
>"Folder >> Default Properties >> Receiving Messages >> Attachment Folders".

Ralph

The Temp folder and the destination folder are both outwith 'Program
Files'.

I have aligned my settings with those in your earlier message, Agent
is opening Acrobat but fails to find the pdf file. I have tried using
a different reading, same result, but it looks as if the path to the
file is being split into three sections as I am seeing three separate
'File Not Found' errors.

Ralph Fox

unread,
Sep 28, 2016, 1:56:57 PM9/28/16
to
On Wed, 28 Sep 2016 17:50:34 +0100, Stuart Johnson wrote:

> On Sat, 24 Sep 2016 11:17:58 +1200, Ralph Fox <-rf-nz-@-.invalid>
> wrote:
>
>
>> As per my other reply: If Agent's 'Temporary folder for launching
>> attached files' is inside "Program Files" or "Program Files (x86)",
>> then that too can cause problems launching types of attachments.
>> I suggest checking the setting at
>> "Folder >> Default Properties >> Receiving Messages >> Attachment Folders".
>
> Ralph
>
> The Temp folder and the destination folder are both outwith 'Program
> Files'.
>
> I have aligned my settings with those in your earlier message, Agent
> is opening Acrobat but fails to find the pdf file. I have tried using
> a different reading, same result, but it looks as if the path to the
> file is being split into three sections as I am seeing three separate
> 'File Not Found' errors.


That suggests that the Application setting in MIME Types does not have
the parameter
"%1"
_including_ the quote marks shown, at the end. It suggests that either
the quote marks were left off, or the whole parameter is missing.

The Application setting should look something like this, _including_ all
the "%1" parameter and all four quote marks shown.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ QUOTE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" "%1"

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ QUOTE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


--
Kind regards
Ralph

Stuart Johnson

unread,
Sep 29, 2016, 5:29:06 AM9/29/16
to
On Thu, 29 Sep 2016 06:56:55 +1300, Ralph Fox <-rf-nz-@-.invalid>
wrote:

>
>That suggests that the Application setting in MIME Types does not have
>the parameter
> "%1"
>_including_ the quote marks shown, at the end. It suggests that either
>the quote marks were left off, or the whole parameter is missing.
>
>The Application setting should look something like this, _including_ all
>the "%1" parameter and all four quote marks shown.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ QUOTE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" "%1"
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ QUOTE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ralph

Yes, the "%1" was missing. I have amended the line, but although
Acrobat opens with the files listed it throws up the 'File Not found'
error box.
0 new messages