<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Pick your brains...Script to export to PowerPoint in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5166#M5165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just for information for anyone reading: the predictum add-in will crash with powerpoint 2007, although it creates the file.&lt;/P&gt;&lt;P&gt;also, the jsl scripts seems to be encripted, calling a separate exe to create the powerpoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in other words, this road is closed (to me at least), I will go the VBA script way&lt;/P&gt;&lt;P&gt;thanks to all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Mar 2013 11:53:56 GMT</pubDate>
    <dc:creator>dghidoni</dc:creator>
    <dc:date>2013-03-06T11:53:56Z</dc:date>
    <item>
      <title>Using a JSL script to export graphs to PowerPoint</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5158#M5157</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trying to pick your brains here and see what would be the best path for this idea.&lt;/P&gt;
&lt;P&gt;The idea is to be able to take all graphs/plots from a script and push them into powerpoint. I would like customize this to be able to drag graphs to the slide and position them, along with text, outside of powerpoint and then push that to powerpoint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I currently have the first part crudely done. Using the Application Builder I was able to create an app where it prompts the user for a script, runs the script, grabs all of the windows open from the script, throws them in a list where the user is able to select which graphs to go to PPT.&lt;/P&gt;
&lt;P&gt;After that, I have a VBscript which is called once the user chooses a template. Any graph saved to HTML creates a GFX folder with the contents of that graph, and the VB script grabs the contents of that GFX folder and throws it into powerpoint.&lt;/P&gt;
&lt;P&gt;Its very crude, one graph per slide the user must add text within powerpoint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is if you think is the right direction to take. I talked with some people at JMP yesterday and they mentioned that another path to look into is utilizing R. I haven't any experience with R but if its a better/more efficient path to take then I would look into it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To expand on my current work, maybe I could just make and option for the user to select which part of the powerpoint to place the graph, along with text. But I wouldn't be sure on how to pass that to the VB script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for any help or ideas. Anything is welcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Matt&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 17:20:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5158#M5157</guid>
      <dc:creator>matt_p</dc:creator>
      <dc:date>2017-09-19T17:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pick your brains...Script to export to PowerPoint</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5159#M5158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Predictum has a free package that will export JMP output to Powerpoint.&amp;nbsp; &lt;A class="active_link" href="http://predictum.com/" title="http://predictum.com/"&gt;http://predictum.com/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 15:27:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5159#M5158</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2012-06-22T15:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pick your brains...Script to export to PowerPoint</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5160#M5159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes I have looked into their solution, but I have already done basically what they have done. Now I am looking to expand it to where I can place graphs/text on the slide without opening powerpoint. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was also looking for possible other routes or solutions other may think of. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 18:39:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5160#M5159</guid>
      <dc:creator>matt_p</dc:creator>
      <dc:date>2012-06-22T18:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Pick your brains...Script to export to PowerPoint</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5161#M5160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using VB script I'm assuming you have already looked at the OLE Automation support within JMP.&amp;nbsp; I've not tried this, but you might want consider using XML as the interface mechanism - check out&lt;SPAN style="color: #333333; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; text-align: -webkit-auto; background-color: #ffffff;"&gt; Open XML SDK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 12:43:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5161#M5160</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2012-06-26T12:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Pick your brains...Script to export to PowerPoint</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5162#M5161</link>
      <description>&lt;P&gt;Do you have a really good reason for not wanting to execute from PowerPoint?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My suggestion would be to write your JMP application, have it perform the analysis and generate the graphs you want, and save them as images, completely independent of the presentation you are trying to create. Then, write a macro in PowerPoint which first calls your JMP script to run, then grabs the images it created from the specified folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I say this because the formatting in PowerPoint is a breeze in VBA (pretty much the only thing that IS easy in VBA), because it has a lot of built-in methods and a lot of online examples for how to use them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the subroutine to call JMP from Powerpoint would look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Public Sub RunJSL()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set MyJMP = CreateObject("JMP.Application")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyJMP.Visible = True&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyJMP.RunJSLFile ("C:\&amp;lt;yourscript&amp;gt;.jsl")&lt;/P&gt;
&lt;P&gt;End Sub&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then you write another VBA subroutine which calls RunJSL, and then looks in a specified folder, adding a slide for every image in that folder, which you can do whatever you want with, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Public Sub MakePics()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oSlide As Slide&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oPicture As Shape&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oTitle As Shape&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ImgFldr As String:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ImgFldr = "$Documents\Plot Images"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim CurrentFile As String&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call RunJSL&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CurrentFile = Dir(ImgFldr &amp;amp; "\")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do While CurrentFile &amp;lt;&amp;gt; ""&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call AddSlides(CurrentFile)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //format new slide with new picture on it, center it, scale it, add title, whatever&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveWindow.View.GotoSlide i&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CurrentFile = Dir()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = i + 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Loop&lt;BR /&gt; &lt;BR /&gt;End Sub&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: You would need to write the subroutine AddSlides as well&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 18:58:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5162#M5161</guid>
      <dc:creator>m477</dc:creator>
      <dc:date>2017-09-18T18:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Pick your brains...Script to export to PowerPoint</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5163#M5162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EDIT: You would need to write the subroutine AddSlides as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 14:49:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5163#M5162</guid>
      <dc:creator>m477</dc:creator>
      <dc:date>2012-06-26T14:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pick your brains...Script to export to PowerPoint</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5164#M5163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the info m477. I was looking to keep this self contained in JMP, just create an add-in that I would be able to install on any machine with JMP and have it be able to run. Thats not entirely set in stone, so if this option is completely off base I can work with VBA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current Add-In I built in JMP grabs all of the open plots and adds the selected ones to a folder. So I do have a folder of all the plots that I want to get into PPT. The next step I am looking for is a form of customization. Within the jmp add in I want prompt the user&amp;nbsp; for slide properties, including the number of graphs per slide, title of the slide, additional text and positions of slides/text. &lt;/P&gt;&lt;P&gt;My current idea is to prompt for all of this in JMP, grab all of the slide properties and then pass them into a VBA macro so it can execute the particular slide properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to pass parameters from JMP to the macro? Maybe save the slide parameters in a text file of some sorts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 15:37:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5164#M5163</guid>
      <dc:creator>matt_p</dc:creator>
      <dc:date>2012-06-27T15:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pick your brains...Script to export to PowerPoint</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5165#M5164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pretty sure there is a way to do that, and it should be easier than writing to a text file. VBA has a lot of associations with JMP, and if you have JMP installed on your machine, go to VBA Editor&amp;gt;Tools&amp;gt;References... and you should see a long list of selectable applications to use as references. Find "JMP" and click the box, and now you have a built-in library of commands you can issue to JMP. You can basically script JMP from VBA this way. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 15:51:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5165#M5164</guid>
      <dc:creator>m477</dc:creator>
      <dc:date>2012-06-27T15:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pick your brains...Script to export to PowerPoint</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5166#M5165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just for information for anyone reading: the predictum add-in will crash with powerpoint 2007, although it creates the file.&lt;/P&gt;&lt;P&gt;also, the jsl scripts seems to be encripted, calling a separate exe to create the powerpoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in other words, this road is closed (to me at least), I will go the VBA script way&lt;/P&gt;&lt;P&gt;thanks to all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 11:53:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5166#M5165</guid>
      <dc:creator>dghidoni</dc:creator>
      <dc:date>2013-03-06T11:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pick your brains...Script to export to PowerPoint</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5167#M5166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, I did for myself, here you are&lt;/P&gt;&lt;P&gt;these are single modules, put them in a wider loop or use as you like it (and forgive my english ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*export from jmp - image&lt;/P&gt;&lt;P&gt;generate your graph as usual, creating a reference to it (for example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graph_reference = datatable &amp;lt;&amp;lt;Chart( X( :week, :class ) etc&lt;/P&gt;&lt;P&gt;then save the image as usual&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graph_reference &amp;lt;&amp;lt;Save Picture("\output\"name_image.png", png);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*export from jmp - text&lt;/P&gt;&lt;P&gt;just for test put something in your variables, the real use will be to have them contain the info you need to export&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string_containing_title1 = "first row";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string_containing_title2 = "\!Nsecond row";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Save Text File("titles.txt",string_containing_title1, mode ("replace"));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Save Text File("titles.txt",string_containing_title2, mode ("append"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and now that you have images and text, you can import them directly in powerpoint (pay attention to the format .pptm, macros security and that stuff ...)&lt;/P&gt;&lt;P&gt;this is the VBA code that import an image and place it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;' definition variables slides&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oSlide As Slide&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim numero As Integer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oPicture As Shape&lt;/P&gt;&lt;P&gt;' definition variables images&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ImgFolder As String:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ImgFolder = "C:\Users\john_ronald_reuel\Documents\toy_box\pet01\test_im\"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim piazza1 As String&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim file1 As String&lt;/P&gt;&lt;P&gt;' value set for testing purposes, for real use put up a cicle to define them, here we put 5831_pie.jpg in slide 02&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file1 = "5831_pie.jpg"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; numero = 2&lt;/P&gt;&lt;P&gt;' creating full path for image files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; piazza1 = (ImgFolder &amp;amp; file1)&lt;/P&gt;&lt;P&gt;' setting slide 02 as active&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oSlide = ActiveWindow.Presentation.Slides(numero)&lt;/P&gt;&lt;P&gt;' place image, no link, with save, at coordinates 10,10 from top left, no rescale&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oPicture = oSlide.Shapes.AddPicture(piazza1, msoFalse, msoTrue, 10, 10)&lt;/P&gt;&lt;P&gt;' editing: use crop and others to cropt, place or rescale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; With ActivePresentation.PageSetup&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPicture.PictureFormat.CropBottom = 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPicture.Height = 450&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPicture.Left = 450&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End With&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;notes to this:&lt;/P&gt;&lt;P&gt;*you can use relative path with this code --&amp;gt; ImgFolder = ActivePresentation.Path &amp;amp; "\output\"&lt;/P&gt;&lt;P&gt;*the image editing is sequential and does not like negative numbers: if you want to crop 40 and end at 10, cannot start at -30 and crop and stop, but have to start at 10, crop and then after use left (or top)&lt;/P&gt;&lt;P&gt;*piazza and numero are used to make the code not hardwired, but this is a single module. you better use a cicle and an array to store image names and slide numbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here is the code to load the info exported from jmp and put them in an array, each row goes to an element of the array&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'definition variables for cicle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ilivelli As Integer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim i As Integer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim temp As String&lt;/P&gt;&lt;P&gt;'definition variables for text file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim indexfolder As String&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ImgFolder As String&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim sFileName As String&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim iFileNum As Integer&lt;/P&gt;&lt;P&gt;'definition folder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; indexfolder = "C:\Users\john_ronald_reuel\Documents\toy_box\pet01\config\"&lt;/P&gt;&lt;P&gt;'definition dynamic array, will contain the rows of the text file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim sparam() As String&lt;/P&gt;&lt;P&gt;'redimension it large&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReDim sparam(75) As String&lt;/P&gt;&lt;P&gt;'define file name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sFileName = indexfolder &amp;amp; "levels_DD.txt"&lt;/P&gt;&lt;P&gt;'load the file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iFileNum = FreeFile()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Open sFileName For Input As iFileNum&lt;/P&gt;&lt;P&gt;'cicle do EOF: load line i-eth, put it in temp, then assign it ti the i-eth element of the array, then update the integer ilivelli&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do While Not EOF(iFileNum)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Line Input #iFileNum, temp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sparam(i) = CStr(temp)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ilivelli = i&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = i + 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Loop&lt;/P&gt;&lt;P&gt;'redimension the array to the correct number of row, without erasing it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReDim Preserve sparam(ilivelli)&lt;/P&gt;&lt;P&gt;'close the original file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Close iFileNum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is working for me, i hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 10:55:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-JSL-script-to-export-graphs-to-PowerPoint/m-p/5167#M5166</guid>
      <dc:creator>dghidoni</dc:creator>
      <dc:date>2013-03-25T10:55:33Z</dc:date>
    </item>
  </channel>
</rss>

