Powepoint Automation - Exporting in PowerPoint

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RockyX
    New Member
    • Apr 2010
    • 2

    #1

    Powepoint Automation - Exporting in PowerPoint

    Hi,
    How can i export some information in powerpoint using asp.net. I want to export it in different slides. I dont want it using Interop or com objects. Please suggest me some other alternatives.
    Rgards,
    RockyX
  • Monomachus
    Recognized Expert New Member
    • Apr 2008
    • 127

    #2
    Originally posted by RockyX
    Hi,
    How can i export some information in powerpoint using asp.net. I want to export it in different slides. I dont want it using Interop or com objects. Please suggest me some other alternatives.
    Rgards,
    RockyX
    Hi,
    So really I see for now 2 solutions.
    1st: Microsoft.Offic e.Interop.Power Point.
    But because it's interop and you don't want to use it...
    2. You have PresentationML, which is an OpenXML format for PowerPoint. More information is at OpenXML Developer site. So I think about it as about an XML which has some "special" tags.

    So to generate an PPT you'd need:
    1. An XML with data you need to insert into your PPT template.
    2. An XSLT which takes the data out and put it into PPT template xml.
    3. Transform it into PresentationML format.
    4. Render it into a PPT using open xml 2.0 sdk.

    But to digg into this folow OpenXML Developper site. There should be examples and more explanations.

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      If PresentationML or any of the above are not implemented using Managed Code (.NET code) then you will still probably be using Interop classes.

      Interop classes are wrapper classes that allow Managed Code (.NET code) to interact with Unmanged code (any code not written in .NET).

      Visual Studio is kind enough to automatically generate these classes for you...you could chose not to use the automatically generated Interop classes and implement your own (Interop) wrapper class that converts to allow your .NET code to interact with it.....but this is complicated and unless there is a specific problem with the automatically generated Interop class I recommend you stay out of it.

      Or you could use PInvoke to call the unmanaged classes.

      What's your problem with Interop classes?

      -Frinny

      Comment

      • RockyX
        New Member
        • Apr 2010
        • 2

        #4
        Powerpoint Automation

        Hi..sorry guys i was out of town ..just came back.
        Thanks Frinny & Monomachus for your reply...

        The problem with interop is that there can be a situation where the server doesn't have powerpoint installed and if installed then it can be of different version ..for e.g PPT2007..but the client needs the powerpoint to be exported in ppt 2003. Also exporting using Interop & COM objects degrades the performance.

        i am looking openXML as suggested...let s hope for the best !!!..

        in the meanwhile if there is any other options please be kind enough to let me know abt it...

        regards
        RockyX

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          Oh I see. This seems to be a common question over the last few days actually. Microsoft has a package that lets you redistribute the interop libraries used in applications like yours. For example here is this one for Office 2003: Redistributable Primary Interop Assemblies.

          You should probably contact Microsoft and ask them about the legal implications of using these files.....but I'm pretty sure that the whole reason they exist is for situations like the one you're in.

          -Frinny

          Comment

          Working...