My case is the following. I have a Perspectives report with DBRW and SUBNM and I would like to:
- generate a version of the report with hard values
- email the report to a number of recipients
- this should be done in an automated way
No manipulations need to happen in the report, only getting rid of formulas. This report should be generated every night.
Now, I have it working up to a certain degree. I.e. Excel is installed on the server.
A TI process executes a Scheduled Task on the server.
This task executes a VBScript. The vbscript opens up a new Excel instance, and also an Excel file with 1 macro.
The VBA code in the macro logs on to TM1 Perspectives (no API coding, just TM1p.xla file and its macros), opens the report, zaps the formulas, saves a copy of the file, closes the original file and shuts down Excel.
This works perfectly if me or anyone else is logged on to the server when the TI process executes the vbscript.
However, in the case of NO USER being logged on to the server at that time, it does not work completely. I don't understand why.
It seems that the Application.Run "TM1REFRESH" or "TM1RECALC" is the culprit - or any such code. There, in the VBA code, it stops suddenly, and only when no user is logged on to the server. Otherwise the REFRESH just happens fine.
Does it ring a bell ? Does anyone have a clue what is missing here ? Or should I approach it differently ? The requirement is to generate a report with hard values in a fully automated way - including that no user should do it manually or that someone be logged on to the server. The TM1 Print Report wizard is not an option

I already changed a number of Windows options and settings but somewhere there might still be a hidden option.
Thanks !
Wim