OWC Com exception error

Last post 11-28-2008 10:02 AM by filiz2. 7 replies.

Sort Posts:

  • OWC Com exception error

    10-12-2007, 7:09 AM
    • Member
      point Member
    • fuzzster967
    • Member since 10-09-2007, 8:31 AM
    • Posts 5

    Hello,

     

    Trying to get OWC11 to work within aspx page using VWD2005 Express. When I debug the code I'm getting the following error :-

     Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))

    at the code line

    ChartSpace1.Charts(0).SeriesCollection(0).SetData(c.chDimCategories, c.chDataLiteral, categories)

     I've taken the sample code from the OWCDCH11.CHM help files but with little success.

     Any help much appreciated.

  • Re: OWC Com exception error

    01-02-2008, 3:46 AM
    • Member
      8 point Member
    • mlemmi
    • Member since 01-02-2008, 8:44 AM
    • Empoli, FI (Italy)
    • Posts 4

    I've the same problem. Someone helped you?

    Michele Lemmi
  • Re: OWC Com exception error

    06-26-2008, 11:41 AM
    • Member
      2 point Member
    • dbedo
    • Member since 09-18-2007, 6:08 PM
    • Posts 1

    Same problem here too...

    Any Thoughts??

  • Re: OWC Com exception error

    06-26-2008, 3:47 PM
    • Member
      8 point Member
    • mlemmi
    • Member since 01-02-2008, 8:44 AM
    • Empoli, FI (Italy)
    • Posts 4

    Yes.

    First of all, at the beginning of Declaration:

    Imports Microsoft.Office.Interop And then I use:

    .SetData(OWC.ChartDimensionsEnum.chDimCategories, OWC.ChartSpecialDataSourcesEnum.chDataLiteral, categories)

     istead fo:

     SetData(c.chDimCategories, c.chDataLiteral, categories)

    Let me know, Mikey

    Michele Lemmi
  • Re: OWC Com exception error

    06-26-2008, 3:51 PM
    • Member
      8 point Member
    • mlemmi
    • Member since 01-02-2008, 8:44 AM
    • Empoli, FI (Italy)
    • Posts 4

    I prefer to post a block with code (for different kind of chart but is the same):

     

    ChartSpace1 = New OWC.ChartSpace()

    Dim c As Object

    c = ChartSpace1.Constants

    ChartSpace1.Border.Color = c.chColorNone

    Chart1 = ChartSpace1.Charts.Add(0)

    Chart1_Series1 = Chart1.SeriesCollection.Add(0)

    Chart1_Series1.Type = c.chChartTypeScatterLine

    Chart1_Series1.Line.Color = "Blue"

    Chart1_Series1.Border.Color = "black"

    Chart1_Series1.Marker.Size = 6

    Chart1_Series1.Marker.Style = c.chMarkerStyleCircle

    Chart1_Series1.SetData(OWC.ChartDimensionsEnum.chDimSeriesNames, OWC.ChartSpecialDataSourcesEnum.chDataLiteral,
    "Pesi (g)")

    Chart1_Series1.SetData(OWC.ChartDimensionsEnum.chDimXValues, OWC.ChartSpecialDataSourcesEnum.chDataLiteral, aX)

    Chart1_Series1.SetData(OWC.ChartDimensionsEnum.chDimYValues, OWC.ChartSpecialDataSourcesEnum.chDataLiteral, aY)

     

    Note: aX and aY are the array with values for my scatter line chart

    etc ...

     

    Mickey

    Michele Lemmi
  • Re: OWC Com exception error

    07-17-2008, 10:34 AM

    Hi,

    I am trying to draw a line graph using OWC on an asp.net page, do you have any sample code/URL for the same which would guide me in getting started with this.

    Thanks in advance...!!

  • Re: OWC Com exception error

    07-17-2008, 1:33 PM
    • Member
      8 point Member
    • mlemmi
    • Member since 01-02-2008, 8:44 AM
    • Empoli, FI (Italy)
    • Posts 4

    Hi,

     yes I have! You have to read carefully and follow exactly what is written in the article which I send the link. You will find the solution there.

    http://aspnet.4guysfromrolla.com/articles/080603-1.2.aspx

    You have to be really carefull when you read the section called "Installing OWC10 on the Web Server" or you'll get in troubles.

    Please, let me know if it works,

     

    my best regards.

    Miles

    Michele Lemmi
  • Re: OWC Com exception error

    11-28-2008, 10:02 AM
    • Member
      2 point Member
    • filiz2
    • Member since 11-28-2008, 9:50 AM
    • Posts 1

     hi

     

    i took .COMException: Error HRESULT     exception.After i had reloaded the owc11 from http://www.microsoft.com/downloads/details.aspx?FamilyID=7287252c-402e-4f72-97a5-e0fd290d4b76&displaylang=en  ,  the problem was fixed.First install the owc11.exe then close visual studio and delete your debug binaries and reopen the project from visual studio.

    see also this link http://www.codeproject.com/KB/aspnet/owc11article.aspx?fid=60938&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=26

     

     

Page 1 of 1 (8 items)