Quantcast
Channel: DIAdem topics
Viewing all articles
Browse latest Browse all 3197

Report Sheet Copy

$
0
0

Hi guys,

I've got a problem with Diadem 2014. I'm running a windows scheduled task which starts Diadem with a given script. That works fine (for years now). But lately I changed the report generation to be more flexible, ie creating/copying sheets from within the script.

 

The problem now occurs after using

Set shUser = Report.Sheets.Copy("sheet1", "user_sheet", 1)

, the new sheet is created, but it is empty. I've tried some solutions discussed in this topic Report Copy - Objects Missing

but none of them are working when running the script via Microsoft Windows Task Scheduling (Diadem not visible). Running the script myself with visible Diadem window works just fine. Hence, I guess the culprit here is the non-visible Diadem window?

 

I also tried

GraphSheetCopy "sheet1", "user_sheet", Report.Sheets.Count + 1
Set shUser = Report.Sheets("user_sheet")

And also

Report.Sheets("sheet1").Activate

Set shUser = Report.Sheets.Copy("sheet1", "user_sheet", 1)

Does anyone have a solution for that problem? besides upgrading to a newer Diadem Version, as this is not possible due to clients restrictions.

Help is greatly appreciated.

 

Thanks for the help,

Mateusz


Viewing all articles
Browse latest Browse all 3197

Trending Articles