02-26-2014 02:26 PM
Currently I am using a script (written mostly by Brad, thanks!) to export reports to pdf.
What do I need to change to make it export to powerpoint? (I personally loathe PPT, but I need a way to get it to import cleanly into Word.)
This is the line that is currently used to export to pdf.
CallReport.Sheets.ExportToPDF(CurrentScriptPath & Data.Root.Name & ".pdf", False)
What else do I need to change?
CallReport.Sheets.ExportToPowerPoint(CurrentScriptPath & Data.Root.Name & ".ppt", False)
I can't find any other obvious reference to pdf in the function but I get the following error:
Wrong number of arguments or invalid property assignment: 'Report.Sheets.ExportToPowerPoint'
Thanks.
02-26-2014 02:32 PM - edited 02-26-2014 02:34 PM
Nevermind, the online help solved it. The 'too many arguments' was a bit of a giveaway once I thought about it.
However, is there a way to change the default layout that PPT uses as a template? (it seems built into Diadem, since it adds the NI footer and artifacts automatically.
02-27-2014 10:57 AM
Hi Worldtraveller,
Here is a forum thread that goes through this:
http://forums.ni.com/t5/DIAdem/Power-Point-Report-Default/td-p/1572298