Report Save Function Issue

When I type in the 'settings' parameters following the example in the manual to save a report:

# Executes and distributes the report to save a PDF
settings = {"path":"C:\\Ignition Reports", "fileName":"Report.pdf", "format":"pdf"}
system.report.executeAndDistribute(path="My Report Path", project="My Project", action="save", actionSettings=settings)

The filename always is saved with the filename ex."04-26-23 12PM" as a pdf (expected). My question is, why does it not use the filename I entered? In this case, if I used the above example code and replaced the 'Report.pdf' with my own name, it still shows just the date. Plus it overwrites the previous file if I have saved it within the same hour.

Help? What am I missing?

What Ignition version? I couldn't reproduce on my 8.1.25 instance.

Too much time staring at code today...missed an easy one. I messed up with the "fileName" part. I did not capitalize the 'N' in 'filename'.

Sometimes something so obvious just escapes me...DOH!

Solved and embarrassed.

3 Likes

No need. Typos are an unfortunate part of every programmer's life. :man_shrugging:

3 Likes