Save Report to File function and dynamically generating dated files

Try something like this:

[=Helper.GetUniqueString().substr(8,2)].[=Helper.GetUniqueString().substr(10,2)].[=Helper.GetUniqueString().substr(12,3)]

Gives time as HH.mm.xxx, like 13.20.450

Using [=Helper.GetUniqueString()] produces a date/time formatted like YYYYMMDDHHmmxxx such as 201407211649105. Using the .substr() function you can parse it out and add your own separators as I did with the first example for just the TIME portion.

For your filename, you could do something like:

C:\path\to\file\Report_[=Helper.GetUniqueString()].xps

So the filename should appear as:

Report_201407211649105.xps
3 Likes