Exceptions in Excel Interop

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Neil Stephens

    #1

    Exceptions in Excel Interop

    We have a service written in VB.NET running on the .NET2.0 framework. Part
    of it's function is to create Excel spreadsheets. This code works fine on
    all but one server that it's running on, but on this one we get the error -

    ----------------------------------------
    This command is unavailable because the license to use this application
    has expired.
    ----------------------------------------
    at Excel.Applicati onClass.set_Edi tDirectlyInCell (Boolean RHS)

    The code causing the problem is -

    xlApp = New Excel.Applicati on
    With xlApp
    .EditDirectlyIn Cell = True
    .ScreenUpdating = False
    .DisplayAlerts = False
    .IgnoreRemoteRe quests = True
    .AlertBeforeOve rwriting = False
    .AskToUpdateLin ks = False
    End With

    As far as we can tell, the copy of Excel installed on the server is
    correctly licensed and activated. If you run Excel from the desktop you
    don't get any problems.

    Anyone got any ideas what might cause this problem ?

    Thanks,

    Neil Stephens,
    Foresite Systems.

  • rowe_newsgroups

    #2
    Re: Exceptions in Excel Interop

    Anyone got any ideas what might cause this problem ?

    Can't say I've seen that before. Have you (or can you) reinstall Excel
    on that particular server? That would probably fix the problem.

    Thanks,

    Seth Rowe



    Comment

    Working...