‎24-07-2020 10:38 AM
hello I want to export a report created in hopex with a macro. Is there an example simple code?
With to visual basic macro for PPM Module Report To Export File Pdf Example macro
‎27-07-2020 12:04 PM
‎27-07-2020 12:02 PM
I am not giving the latest updated report. I need to click on the actions button. how can I add this to the macro you sent me.
‎24-07-2020 05:36 PM
thank you very much
‎24-07-2020 05:16 PM
Yes, the report is regenerated and contains fresh data
‎24-07-2020 05:00 PM
screenshot is attached below
‎24-07-2020 04:59 PM
Firstly, thank you. code worked 🙂 how to add new refresh field in this marked area to this code. Or does this code automatically take the current report?
‎24-07-2020 04:59 PM
‎24-07-2020 02:57 PM
Here is an example of script
Dim oRoot,oAnalysisPlugin,oAnalysis,sFile
Dim oSource : Set oSource = getObjectFromId("MyReportID")
Set oRoot = GetRoot
Set oAnalysisPlugin = oRoot.CurrentEnvironment.GetMacro("~9MuFp4qmBD40[Analysis Plugin]")
Set oAnalysis = oAnalysisPlugin.newAnalysisFromMegaInstance(oSource,false)
oAnalysis.setDestinationFile "C:\Temp\MyFileName.pdf"
sFile = oAnalysis.Generate("PDF",MySelf,Nothing)
print "OK"