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

  • Hello Iván,

    Some basic checkings:

    - The path for the reports exists and the reportsServer has access to it.

    - The path is stored in a parameter of project and there is no citect.ini file to override it.

    - Or the the path is in the citect.ini file and you copy that line to the citect.ini file of the new computer.

    - The report format file exists.

    - ReportServer is running.

  • Thanks Nuno for your response.

    * I've already checked that the path exists. The report server service is run as administrator and the administrators have r/w priviligies on that folder.

    * The report format file exists. Checked.

    * Report server is running. Checked

    * The path is stored in the project and citect.ini doesn't override it.

    I'm kinda lost. Any other ideas?

  • Probably you need to check the effective permission on that folder (Property|Security|Advance). Try to create a txt file in that folder.

  • Hi Jacky. Thanks for your response. I've granted control total for all users but not working yet. I even tried creating a new folder on desktop and following your approach but no luck so far

  • this may not be applicable, but worth a look.

    i had a similar issue a few years back doing some logging and found it was the folder on another machine i was sending the data to.

    i had named the folder "Process Data" and found it would not log, if i changed the name to "Process_Data" with an underscore it worked fine.

     maybe check your files and directory path again for "C:\Users\Public"

  • 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.

  • Time ago I got help to solve this problem.

    I had to configure 

    [Device]
    CreateHistoryFiles = 0

    That solved everything