Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Charting with OWC

Status
Not open for further replies.

drkestrel

MIS
Sep 25, 2000
439
GB
Trying to use the Office Web Component 9.0 (that comes with Office XP) to draw a graph with just dots plotted and no lines, couldn't figure out how to get rid of the lines.

I even tried experimenting in Excel, using Tools->Record Macro to do what I want and then copy the code from VBA into VB Forms apps.

Here is the code from VBA as generated by Excel:
Code:
ActiveChart.SeriesCollection(1).Select
    With Selection.Border
        .Weight = xlThin
        .LineStyle = xlNone
    End With

But in VB Forms, it doesn't quite work.
Code:
Friend WithEvents chsDataPresentation As AxOWC10.AxChartSpace
'If objChartLineSelection is dimmed as a ChSeries, I could get to objChartLineSelection.Border, but there isn't a LineStyle.  
If I dim objChartLineSelection  as a Range, I could only get to objChartLineSelection.Borders

Dim objChartLineSelection As OWC10.ChSeries

chsDataPresentation.Charts.Item(0).Type = OWC10.ChartChartTypeEnum.chChartTypeLineMarkers

Any clues how that could be done?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top