Generating Reports

We're using Citect 8.0 running on Windows 10. 

The reports should be saved in "C:\Users\Public" and the output format is txt.

When we run in cicode:

        int iResult;

        iResult = report("report_name");

iResult is 0 (no error) but no file is created.

Previously, the same Citect project was running on another pc with Windows 10 and everything worked fine.

Any suggestions? Thanks in advance

Parents
  • Hi Iván,

    My guess is that C:\Users\Public is a special folder, managed by Windows. You might need special privileges for that. The same goes for creating files and folders on the desktop. I always create data folders in other locations, like C:\Data\ or something like that.
    Also keep in mind that if you run Citect as a service (have Runtime Manager running as a service) then it will run under a different Windows user account, and that account may not have privileges for the folder you are testing with.

Reply
  • Hi Iván,

    My guess is that C:\Users\Public is a special folder, managed by Windows. You might need special privileges for that. The same goes for creating files and folders on the desktop. I always create data folders in other locations, like C:\Data\ or something like that.
    Also keep in mind that if you run Citect as a service (have Runtime Manager running as a service) then it will run under a different Windows user account, and that account may not have privileges for the folder you are testing with.

Children
No Data