Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #73379

Re: Generate Single PowerPoint from two powerpoints using pywin32(python)

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <paul@mcnettware.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.012
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; 'output': 0.05; 'subject:two': 0.07; 'exist,': 0.09; 'subject:using': 0.09; 'works.': 0.09; 'python': 0.11; 'language.': 0.14; "(it's": 0.16; 'doing,': 0.16; 'macro.': 0.16; 'patil': 0.16; 'pywin32': 0.16; 'side.': 0.16; 'stuff,': 0.16; 'subject:Generate': 0.16; 'subject:Single': 0.16; 'subject:python': 0.16; 'language': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'programming': 0.22; 'python?': 0.22; 'header:User-Agent:1': 0.23; "aren't": 0.24; 'paul': 0.24; '(or': 0.24; "i've": 0.25; 'excel': 0.26; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; 'work.': 0.31; 'code': 0.31; 'lines': 0.31; '(usually': 0.31; 'this.': 0.32; 'figure': 0.32; 'worked': 0.33; 'running': 0.33; 'actual': 0.34; "i'd": 0.34; 'subject:from': 0.34; 'could': 0.34; 'convert': 0.35; 'test': 0.35; 'but': 0.35; 'interact': 0.36; 'surely': 0.36; 'should': 0.36; 'wrong': 0.37; 'turn': 0.37; 'two': 0.37; 'needed': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'flow': 0.39; 'received:71': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'days': 0.60; 'read': 0.60; 'office': 0.60; 'consists': 0.60; 'forum': 0.61; 'received:208': 0.61; 'back': 0.62; 'save': 0.62; 'making': 0.63; 'situation': 0.65; 'here': 0.66; 'side': 0.67; 'forums': 0.68; '(microsoft': 0.84; 'received:208.70': 0.91; 'recorder': 0.91; 'was:': 0.91
Date Wed, 18 Jun 2014 13:38:18 -0700
From Paul McNett <paul@mcnettware.com>
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
MIME-Version 1.0
To python-list@python.org
Subject Re: Generate Single PowerPoint from two powerpoints using pywin32(python)
References <8f45e063-8844-40a1-b1c2-27a0b8803382@googlegroups.com>
In-Reply-To <8f45e063-8844-40a1-b1c2-27a0b8803382@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.11122.1403123901.18130.python-list@python.org> (permalink)
Lines 37
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1403123901 news.xs4all.nl 2958 [2001:888:2000:d::a6]:44411
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:73379

Show key headers only | View raw


On 6/16/14, 11:20 PM, Jaydeep Patil wrote:
> I have two powerpoints, which consists of images in each slide.
> I need to read each powerpoint, copy images from both powerpoint & paste these images into output powerpoint side by side.
>
> How should i do thism using python?
> The repoisition of shapes seems to be difficult.

This seems like the wrong forum to ask this. Whatever the right 
Powerpoint calls are to accomplish this, it has nothing to do with 
Python. Well, you are making the calls via Python but the content of the 
calls aren't python.

Back in the old days (it's been over a decade since I've worked with 
Microsoft Office using COM automation) when I needed to figure out how 
to programatically manipulate a Powerpoint slide or Excel spreadsheet, 
my general flow was:

1) turn on the macro recorder in Office.
2) do the operation that needs doing, using the Office UI.
3) save the macro.
4) set up the situation again, and this time play back the macro to make 
sure it works.
5) convert the macro code into whatever is needed in the client 
programming language (usually just wrapping the actual macro lines of 
code into strings passed using a pywin32 function)
6) test running the situation with the calling client programming language.

Frankly, I'm not sure COM automation is the current way to interact with 
Microsoft stuff, but surely by querying other forums (Microsoft Office 
automation forums should exist, I'd think) on how to do #1-3 above would 
get you halfway. Then you could ask here about how to use pywin32 (or 
whatever) to communicate with Powerpoint to do the work.

Does that make sense?
Paul

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Generate Single PowerPoint from two powerpoints using pywin32(python) Jaydeep Patil <patil.jay2009@gmail.com> - 2014-06-16 23:20 -0700
  Re: Generate Single PowerPoint from two powerpoints using pywin32(python) Jaydeep Patil <patil.jay2009@gmail.com> - 2014-06-17 22:52 -0700
    Re: Generate Single PowerPoint from two powerpoints using pywin32(python) Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-06-18 08:54 -0400
  Re: Generate Single PowerPoint from two powerpoints using pywin32(python) Paul McNett <paul@mcnettware.com> - 2014-06-18 13:38 -0700

csiph-web