# system.report.executeAndDistribute: printing report, path not found

**URL:** <https://forum.inductiveautomation.com/t/system-report-executeanddistribute-printing-report-path-not-found/63998>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [September 13, 2022, 9:21am UTC](https://forum.inductiveautomation.com/t/system-report-executeanddistribute-printing-report-path-not-found/63998 "2022-09-13T09:21:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor\_Aal](https://avatars.discourse-cdn.com/v4/letter/v/e480ec/32.png) [@Victor\_Aal](https://forum.inductiveautomation.com/u/Victor_Aal)\
**Post date:** [September 13, 2022, 9:21am UTC](https://forum.inductiveautomation.com/t/system-report-executeanddistribute-printing-report-path-not-found/63998/1 "2022-09-13T09:21:15Z")

</div>

Hello there,  
I’m new at Ignition, so what I’m trying to do is maybe a wrong approach but I can’t find another way.

I have a sequence where at some point I save a report with the save option of the system.report.executeAndDistribute function:

```auto
 Path =	"D:\\Program files2\\Ignition_install\\REPORTS\\"
 settings = {"path":Path, "fileName":Name, "format":"pdf"}
 system.report.executeAndDistribute(path="LNG_COMP_REP_2", project=project, action="save", actionSettings=settings)

```

This is ok, the file is saved on the right place.  
I also copy the report name to a memory tag and via a gateway tag change script I would like to print that latest report:

```auto
Lastreport = system.tag.readBlocking(['[SAMPLER_TAGS]SAMPLER/PROJECT/SAMPLING_STATUS/S1_Last_Report_Name'])[0].value
Reportpath = "D:\\Program files2\\Ignition_install\\REPORTS\\"+Lastreport

project = 'SAMPLER'
printer = 'IgnitionPrinter'
settings = {"primaryPrinterName":printer, "copies":1}

system.report.executeAndDistribute(path=Reportpath, project=project, action='print', actionSettings=settings)

```

But what ever I try I keep on getting the message “Report path D:\Program files2\Ignition\_install\REPORTS\SAMPRPRT.pdf can not be found”

In the wrapper log the path name is good, if I put it in windows exporer the right file is opened.  
I also have a file exporer and pdf viewer both show the correct report.  
But with the tag change script it does not work.

Should I specify the path in another way or do something else?

I’m running Ignition designer 8.1.17 with Vision in trial mode, both gateway and designer are on the same PC.

I really would appreciate some help, thanks in advance.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [September 13, 2022, 9:32am UTC](https://forum.inductiveautomation.com/t/system-report-executeanddistribute-printing-report-path-not-found/63998/2 "2022-09-13T09:32:56Z")

</div>

Welcome to the forum. Tip: use the \</\> code formatting button when posting code. It will indent properly (important for Python) and give syntax highlighting. You can use the 🖉 edit link to fix your post.
