I think you'd be better off to take this to a forum specific to either
powerpoint or ruby.. you're pretty far away from the expertise of the
folks here once you are not dealing with watir, or a web iterface or
website

On Apr 19, 10:41 pm, kiran <gki...@gmail.com> wrote:
> Hi paul,
> Thank you for your reply.
> I am using MS-powerpoint2003 and I have tried the following code.
>   require 'win32ole'
>   ppt = WIN32OLE.connect('PowerPoint.Application')
>   oPres=ppt.ActivePresentation
>   oSlides = oPres.Slides
>
> for oSlide in oSlides
> oShapes = oSlide.NotesPage.Shapes
> for oSh in oShapes
>   if  oSh.HasTextFrame
>
>             if oSh.TextFrame.HasText
>               if oSh.TextFrame.TextRange
>
>               puts oSh.TextFrame.ole_get_methods
>
>   end
> end
> end
> end
> end
>
> Getting the following error.
>
> power.rb:30:in `method_missing': TextRange (WIN32OLERuntimeError)
>     OLE error code:80048240 in Microsoft Office PowerPoint 2003
>       TextFrame.TextRange : Invalid request.  This type of shape
> cannot have a TextRange.
>     HRESULT error code:0x80020009
>       Exception occurred.       from power.rb:30
>         from power.rb:26:in `each'
>         from power.rb:26
>         from power.rb:24:in `each'
>         from power.rb:24
>
> Any idea?
>
> Thanks,
> kiran
>
> On Apr 17, 12:39 am, Paul Rogers <paul.rog...@shaw.ca> wrote:
>
>
>
> > not with watir. But powerpoint probably has an ole interface so you can
> > write your own ruby code to do it.
>
> > Paul
>
> > On Thu, Apr 16, 2009 at 1:25 PM, kiran <gki...@gmail.com> wrote:
>
> > > Hi all,
> > > Any idea on this? Is it possible to automate power point using watir?
> > > please help me.
>
> > > Thanks,
> > > kiran
>
> > > On Mar 31, 10:13 am, kiran <gki...@gmail.com> wrote:
> > > > Hi,
> > > > How to get the data from powerpoint in Ruby(watir).
>
> > > > Thanks in Advance.- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to