[Qgis-user] Help/advise in using Action functionality

Bernhard Ströbl bernhard.stroebl at jena.de
Wed Feb 4 02:10:29 PST 2015


Hi Ludwig,

this Python action opens a pdf:

import os;os.startfile('[% "field_containing_path_to_file" %]')

tested on Win7 64 bit, QGIS 2.6.1
should open any document with its default application

save the pathes in field_containing_path_to_file with forward slashes /!

Bernhard


Am 04.02.2015 10:07, schrieb Ludwig Gamsjäger:
> Hi everybody,
>
> I’m looking for a description/eventually tutorial on how to call
> external programs from within QGIS (e.g. document viewer), I’m running
> 2.6 under Windows 32 bit, grateful for any help/advise, thanks in advance,
>
> Ludwig
>
> Ludwig Gamsjäger
>
> Bergengasse 4/1/8, A-1220 Wien
>
> Tel +43 (0) 681 2066-3138
>
>
>
> __________ Information from ESET Mail Security, version of virus
> signature database 11121 (20150204) __________
>
> The message was checked by ESET Mail Security.
> http://www.eset.com
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
> __________ Information from ESET Mail Security, version of virus signature database 11121 (20150204) __________
>
> The message was checked by ESET Mail Security.
> http://www.eset.com
>



__________ Information from ESET Mail Security, version of virus signature database 11121 (20150204) __________

The message was checked by ESET Mail Security.
http://www.eset.com





More information about the Qgis-user mailing list