Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello,

 

I'm trying to create an Excel chart ...

I'm based on the

"Create an Automation Client for Microsoft Excel"

 

When I write the following code:

oSeries.XValues = oSheet.Range("A7", "A22")

nothing changes to the generated chart (same result when I leave out this line of code!) and I don't take the values of this column (A) to the axis X... Where is the error?

 

I have 2 series so I tried the following:

.SeriesCollection(1).XValues = oSheet.Range("A7", "A22")

.SeriesCollection(2).XValues = oSheet.Range("A7", "A22")

 

but I take this error:

 

An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in microsoft.visualbasic.dll

 

Additional information: Type mismatch.

 

Please, can anybody help me?

 

Note: I found that this error is a bug of MS but I didn't understand what I'm supossed to do to correct it...

 

Thank you

la grecque
  • 2 years later...
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...