|
Hello Everyone:
I wonder if somebody know how can I put a powerpoint chart in spss output automatically. Thank you Behnaz _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
|
Hi Behnaz
basically, I think it is easier to have each charts as a file (e.g *.wmf, or *.jpg). In that way you can control by the file name what chart you want to import. I tested your request for importing from PowerPoint directly and found (I was surprised that this works), that you can actually import the first slide of a PowerPoint file with the code below. However, the code imports the complete slide, not only its chart and only the first slide. The same code would work for importing a chart file as well. Option Explicit Sub Main Dim objOutputDoc As ISpssOutputDoc Dim objOutputItem As ISpssItem Dim myPath As String myPath = "D:\Temp\Präsentation1.ppt" Set objOutputDoc = objSpssApp.GetDesignatedOutputDoc 'Insert the PowerPoint Slide Set objOutputItem=objOutputDoc.AddFromFile (myPath) End Sub Hope this helps Christian ******************************* la volta statistics Christian Schmidhauser, Dr.phil.II Weinbergstrasse 108 Ch-8006 Zürich Tel: +41 (043) 233 98 01 Fax: +41 (043) 233 98 02 email: mailto:[hidden email] internet: http://www.lavolta.ch/ -----Ursprüngliche Nachricht----- Von: SPSSX(r) Discussion [mailto:[hidden email]]Im Auftrag von behnaz shirazi Gesendet: Montag, 10. Dezember 2007 17:43 An: [hidden email] Betreff: ppt to spss Hello Everyone: I wonder if somebody know how can I put a powerpoint chart in spss output automatically. Thank you Behnaz Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
|
Thank you so much Christian.You are amazing.
Behnaz >From: la volta statistics <[hidden email]> >Reply-To: la volta statistics <[hidden email]> >To: [hidden email] >Subject: AW: ppt to spss >Date: Wed, 12 Dec 2007 16:14:27 +0100 > >Hi Behnaz >basically, I think it is easier to have each charts as a file (e.g *.wmf, >or >*.jpg). In that way you can control by the file name what chart you want to >import. >I tested your request for importing from PowerPoint directly and found (I >was surprised that this works), that you can actually import the first >slide >of a PowerPoint file with the code below. However, the code imports the >complete slide, not only its chart and only the first slide. >The same code would work for importing a chart file as well. > > >Option Explicit > >Sub Main >Dim objOutputDoc As ISpssOutputDoc >Dim objOutputItem As ISpssItem >Dim myPath As String > >myPath = "D:\Temp\Prä³¥ntation1.ppt" >Set objOutputDoc = objSpssApp.GetDesignatedOutputDoc > >'Insert the PowerPoint Slide >Set objOutputItem=objOutputDoc.AddFromFile (myPath) > >End Sub > >Hope this helps > >Christian >******************************* >la volta statistics >Christian Schmidhauser, Dr.phil.II >Weinbergstrasse 108 >Ch-8006 Z?>Tel: +41 (043) 233 98 01 >Fax: +41 (043) 233 98 02 >email: mailto:[hidden email] >internet: http://www.lavolta.ch/ > > > >-----Urspr?he Nachricht----- >Von: SPSSX(r) Discussion [mailto:[hidden email]]Im Auftrag von >behnaz shirazi >Gesendet: Montag, 10. Dezember 2007 17:43 >An: [hidden email] >Betreff: ppt to spss > > >Hello Everyone: > >I wonder if somebody know how can I put a powerpoint chart in spss output >automatically. > > >Thank you >Behnaz > >Express yourself instantly with MSN Messenger! Download today it's FREE! >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > >===================== >To manage your subscription to SPSSX-L, send a message to >[hidden email] (not to SPSSX-L), with no body text except the >command. To leave the list, send the command >SIGNOFF SPSSX-L >For a list of commands to manage subscriptions, send the command >INFO REFCARD > >===================== >To manage your subscription to SPSSX-L, send a message to >[hidden email] (not to SPSSX-L), with no body text except the >command. To leave the list, send the command >SIGNOFF SPSSX-L >For a list of commands to manage subscriptions, send the command >INFO REFCARD _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
| Free forum by Nabble | Edit this page |
