Problem with using PowerPoint 2003 ins ASP.NET

Discussion in 'ASP .Net' started by Marc Eggenberger, Jul 14, 2003.

  1. Hi there.

    I have an webapp (asp.net) which should use powerpoint to create a
    presentation and then send that presentation to the user.

    I'm using VS2003 and Office2003 (project req.).

    The webapp runs find but when I try to open powerpoint in my asp.net
    code I get an error

    COM object with CLSID {91493441-5A91-11CF-8700-00AA0060263B} is either
    not valid or not registered.

    The Code is at end.
    The code runs fine with an Windowsapp.
    I have set the Copy Local in the References of the dll's to true so the
    Interop dll's are there.

    What am I doing wrong here?



    code:

    try
    {
    //Oeffne PowerPoint
    PowerPoint.Application objApp;
    PowerPoint.Presentations objPresSet;
    PowerPoint._Presentation objPres;
    PowerPoint.Slides objSlides;
    PowerPoint._Slide objSlide;
    PowerPoint.TextRange objTextRng;
    Graph.Chart objChartPP;

    //Wegen Bug Q320369

    System.Threading.Thread.CurrentThread.CurrentCulture =
    System.Globalization.CultureInfo.CreateSpecificCulture("en-US");

    objApp = new PowerPoint.Application();
    objApp.Visible =
    Microsoft.Office.Core.MsoTriState.msoTrue;
    objPresSet = objApp.Presentations;
    objPres = objPresSet.Open(".\\Vorlagen
    \\pp1.ppt", Microsoft.Office.Core.MsoTriState.msoFalse,
    Microsoft.Office.Core.MsoTriState.msoTrue,
    Microsoft.Office.Core.MsoTriState.msoTrue);
    objSlides = objPres.Slides;

    }
    catch(Exception fehler)
    {
    System.Diagnostics.Debug.WriteLine("Fehler:
    " + fehler.Message);
    }
    --
    mfg
    Marc Eggenberger
     
    Marc Eggenberger, Jul 14, 2003
    #1
    1. Advertisements

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. Kent P. Iler
    Replies:
    2
    Views:
    644
    Kent P. Iler
    Sep 18, 2003
  2. Kieran Kelly
    Replies:
    3
    Views:
    1,077
    Shaji
    Sep 29, 2003
  3. =?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,273
    =?Utf-8?B?Q293Ym95IChHcmVnb3J5IEEuIEJlYW1lcikgLSBN
    Feb 28, 2005
  4. =?Utf-8?B?RHIuIFBhdWwgQ2Flc2FyIC0gQ291bGxCeXRlIChV

    ASP.NET 1.1 VERSION ON WIN SERVER 2003 SP1 & VS 2003 Arch.

    =?Utf-8?B?RHIuIFBhdWwgQ2Flc2FyIC0gQ291bGxCeXRlIChV, Apr 30, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    745
    Aquila Deus
    Apr 30, 2005
  5. C Williams

    ASP.Net and powerpoint

    C Williams, May 17, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    5,445
    Scott Allen
    May 18, 2005
  6. NETRavi
    Replies:
    0
    Views:
    1,880
    NETRavi
    Nov 16, 2005
  7. =?Utf-8?B?VGhlUGlua1BhbnRoZXI=?=

    Creating plug ins for an ASP.net app

    =?Utf-8?B?VGhlUGlua1BhbnRoZXI=?=, Feb 9, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    571
    Spam Catcher
    Feb 9, 2006
  8. Rob R. Ainscough

    VS.NET 2003 using ASP.NET & VB.NET -- IDE design time problems?

    Rob R. Ainscough, May 5, 2005, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    343
    Rob R. Ainscough
    May 6, 2005
Loading...