[Qgis-user] Action "open" to open a pdf-File

Peter Schürch p.schuerch at meierpartner.ch
Mon Sep 14 04:39:08 PDT 2015


Hi Sylvain
Thanks for your hint. Yes this is one possibility - but a very poor one because:

-          If several users on different machines use this project file to access the data it only works if the acrobat installation path is the same everywhere... This is very unlikely...
Also I thought (and read somewhere) that the action type "open" does not require to specify the program with which a file should be opened. Am I wrong??
Peter

Von: PIERRE Sylvain [mailto:sylvain.pierre at bas-rhin.fr]
Gesendet: Montag, 14. September 2015 13:28
An: Peter Schürch
Betreff: RE: Action "open" to open a pdf-File

Hi,

You just have to give the path to acrobat reader first (depends on your OS):

"C:\Program Files\Adobe\Reader 11.0\Reader\AcroRd32.exe " [% "PDF File" %]

Sylvain

De : qgis-user-bounces at lists.osgeo.org<mailto:qgis-user-bounces at lists.osgeo.org> [mailto:qgis-user-bounces at lists.osgeo.org] De la part de Peter Schürch
Envoyé : lundi 14 septembre 2015 10:03
À : Qgis Mailinglist (qgis-user at lists.osgeo.org<mailto:qgis-user at lists.osgeo.org>)
Objet : [Qgis-user] Action "open" to open a pdf-File

QGIS 2.8.1-Wien / Windows 8 / MSSQL-Spatial
Hi List
I want to open a PDF-File from the QGIS-Object-Attribute Window (which pops up when I click with the "info-Tool" on a e.g. point-geometry).

What I have done so far:

-          I have a geometry-table in the MSSQL spatial database with point  geometries which works fine (displays in map, is editable etc..)

-          I have an attribute which contains an absolute path to a PDF-file on our server (The path is correct and works in Explorer).

-          I have defined an action of type "Open", given it a name, added the action [% "PDF File"%] referring to the attribute with the file path and added it to the action list.

When I open the Object Attribute Window and right click somewhere I can select my action BUT nothing happens, not even an error message... I'm clueless.

Using the Action Tool from the toolbar - same result, nothing happens, no error message.

Any ideas?

Thanks, best regards
Peter Schürch
--
Meier und Partner AG
Freiestrasse 26<x-apple-data-detectors://1/0>
8570 Weinfelden<x-apple-data-detectors://1/0>
www.meierpartner.ch<http://www.meierpartner.ch/>
T +41 71 626 5115<tel:+41%2071%20626%205115>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150914/4806c152/attachment.html>


More information about the Qgis-user mailing list