report export pdf with visual basic macro example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎27-07-2020 12:04 PM
How can I add the marked place in the picture to the macro above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎24-07-2020 05:36 PM
thank you very much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎24-07-2020 05:16 PM
Yes, the report is regenerated and contains fresh data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎24-07-2020 05:00 PM
screenshot is attached below
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎24-07-2020 04:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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"
