DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

2012 export to powerpoint

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.

0 Kudos
Message 1 of 3
(5,531 Views)

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.

0 Kudos
Message 2 of 3
(5,530 Views)

Hi Worldtraveller,

 

Here is a forum thread that goes through this:

 

http://forums.ni.com/t5/DIAdem/Power-Point-Report-Default/td-p/1572298

Peter T
Applications Engineer
National Instruments
Message 3 of 3
(5,505 Views)