Massimo Bianchi Posted November 8, 2017 Share Posted November 8, 2017 Hi at all, I would need help writing a script to open the "Export to Microsoft Power Point" so that the user will see the window where they can make selections and export. Thank you very much for helping. Link to comment Share on other sites More sharing options...
Rayees Wani Posted November 8, 2017 Share Posted November 8, 2017 Spotfire does not expose any of the Power Point export functions in the public Spotfire APIs . So this may not be possible. Link to comment Share on other sites More sharing options...
Massimo Bianchi Posted November 8, 2017 Author Share Posted November 8, 2017 Thank you for the reply. how can i dothe export in power point with a button which recallsthe spotfire standard export in power point in Spotfire M Link to comment Share on other sites More sharing options...
Massimo Bianchi Posted November 9, 2017 Author Share Posted November 9, 2017 HI, is it possible export an image of entiere tab ( like a screenshot )and insert it into a power point file (it seems to me like what makes standard exportation in power pointof Spotfire) thank you very much for help me M Link to comment Share on other sites More sharing options...
Rayees Wani Posted November 9, 2017 Share Posted November 9, 2017 As informed earlier, Spotfire does not expose any of the Power Point export functions in the public APIs. A possible option you have is to implement this functionality by yourself. The below link might help: http://stackoverflow.com/questions/31731159/script-to-export-spotfire-gr... ========================================== This will open up powerpoint and export one visualisation per page: from System.IO import * from Spotfire.Dxp.Application.Visuals import VisualContent from System.Drawing import Bitmap, Graphics, Rectangle, Point import clr clr.AddReference("Microsoft.Office.Interop.PowerPoint") import Microsoft.Office.Interop.PowerPoint as PowerPoint powerpoint = PowerPoint.ApplicationClass() powerpoint.Visible = True pres=powerpoint.Presentations.Add() slideCounter = 1 for visual in Document.ActivePageReference.Visuals: #print visual.Title #export graphic to temp file vc = visual.As[VisualContent]() bm = Bitmap(2000, 1200) g = Graphics.FromImage(bm) r = Rectangle(Point(0,0), bm.Size) vc.Render(g, r) file = Path.GetTempFileName() bm.Save(file) #pp setup slide=pres.Slides.Add(slideCounter, PowerPoint.PpSlideLayout.ppLayoutTitleOnly) slideCounter = slideCounter+1 slide.Shapes.AddPicture((file), False, True, 30, 60, 650, 400) title=slide.Shapes.Title txt=slide.Shapes.AddTextBox(1,10,500,500,100) title.Top=0.1 obj=slide.Shapes.Title.TextFrame.TextRange obj.Font.Size=24 ========================================== Link to comment Share on other sites More sharing options...
Massimo Bianchi Posted November 10, 2017 Author Share Posted November 10, 2017 HI, I onlyexport an image of entiere tab ( like a screenshot )and insert it into a power point file (it seems to me like what makes standard exportation in power pointof Spotfire) thank you very much for help me M Link to comment Share on other sites More sharing options...
Mohit Kanojia Posted February 15, 2019 Share Posted February 15, 2019 Hi, The above solution loops through visualization of each page. is there any way to export the image of "the active page". Please refer to the image below. Link to comment Share on other sites More sharing options...
Bruce Chuang Posted March 12, 2020 Share Posted March 12, 2020 Hi, i've used this code to export screen shot to past to new power point. is possible to export screen shot to existing power point Thanks, Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now