Report including tag triggered by button is not working

Hello. Seems like I will be here quite often...

I have set up a Report (including tags), and configured a button to trigger it. But I can't get any output.

I can select to produce a PDF or simply save to disk, but I am never asked for a file name or location.

I have followed exactly what it says in the help. The help does not seem to mention file names or locations, apart from the syntax required by the operating system.

Do I have to include the full path to the .rep file? The help states the filename cannot include spaces. the path however, will contain spaces as that is how windows works. If I specify a path to the .rep file, will the report output be saved in the same location?

  • Hello Bob!

    Follow the steps below and let me know if it works or not:

    1. In your AVEVA Edge project, go to the "Tasks" tab in the Project Explorer, create a Report and name it as you want (without spaces), let's consider the name "Report1"
    In this report you can specify the machine location you want to save the report in the "Output File" field. I'm using the "GetAppPath()" built-in function to save the report directly to the app folder and the name of the report file is "Report1.txt", check the image:

    2. Now, in the "Graphics" tab, create a new AVEVA Edge screen and add a button to the screen. This button will be responsible to trigger the report, to do this you have to add a "Command" to it and use the built-in function "Report" (I'm using the VBScript). In this function, you have to put the name of the report you want to save (here you don't write any path, the path has been already set in the report file), in my case the report name is "Report1.rep", and I want to save it on Disk, so I'll set the parameter as "Disk:Report1.rep". Check the image:

    3. Now run your project and click on the button, after the button is clicked, the report must be created in your project folder.

    I hope that helps you!