Powerpoint interop error

Discussion in 'ASP .Net' started by akshar108 via DotNetMonster.com, Sep 22, 2007.

  1. TextFrame (unknown member) : Invalid request. This type of shape cannot have
    a TextRange

    i got this error while i m fetching text from textframe which is in the slide

    my code is following can any one help me to get all text from slide

    For Each pptSlide In pptDoc.Slides

    shapes1 = pptSlide.Shapes
    For j As Integer = 1 To shapes1.Count

    tf = shapes1.Item(j).TextFrame
    If TypeOf tf.TextRange Is PowerPoint.TextRange Then
    If Not tf.TextRange Is Nothing Then
    str1 += tf.TextRange.Text + " "
    End If

    Else
    If TypeOf shapes1.Item(j) Is PowerPoint.Table
    Then
    Dim dt As PowerPoint.Table = shapes1.Item(j)

    'For Each tShape As PowerPoint.Shape In dt.
    Rows.Count

    ' If tShape.TextFrame IsNot Nothing Then
    ' str1 += tShape.TextFrame.TextRange.
    Text + " "
    ' End If
    'Next
    For i As Integer = 0 To dt.Columns.Count
    For t As Integer = 0 To dt.Rows.Count
    str1 += dt.Cell(t, i).Shape.TextFrame.
    TextRange.Text
    Next
    Next
    End If
    End If
    Next
    Next

    --
    Message posted via DotNetMonster.com
    http://www.dotnetmonster.com/Uwe/Forums.aspx/asp-net/200709/1
    akshar108 via DotNetMonster.com, Sep 22, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Emmanuel

    Configuration Error Interop.MsMask???

    Emmanuel, Jul 10, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    488
    Emmanuel
    Jul 10, 2003
  2. Munsifali Rashid
    Replies:
    7
    Views:
    1,597
    Munsifali Rashid
    Jul 22, 2003
  3. Mauro

    ERROR: Call to Interop.VBA.dll

    Mauro, Mar 3, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,233
    Mauro
    Mar 4, 2004
  4. =?Utf-8?B?dmlrdG9yOTk5MA==?=

    error on the server when trying to run PowerPoint from asp.net cod

    =?Utf-8?B?dmlrdG9yOTk5MA==?=, Feb 28, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,092
    =?Utf-8?B?Q293Ym95IChHcmVnb3J5IEEuIEJlYW1lcikgLSBN
    Feb 28, 2005
  5. PowerPointDeveloper

    Microsoft PowerPoint 2000 error '80048240'

    PowerPointDeveloper, Apr 27, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    130
    PowerPointDeveloper
    Apr 27, 2004
Loading...

Share This Page