If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > OWC11.Chartspace TickLabelSpacing

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-30-10, 10:59
mikezx10 mikezx10 is offline
Registered User
 
Join Date: Oct 2003
Posts: 226
OWC11.Chartspace TickLabelSpacing

I have a page that used OWC Chart, the server was upgraded and now i am using 0wc11 chart, but the ticklabelspacing is causing the error: Microsoft Office 2003 Web Components error '80004005' This property is not used by category axes.

Below is my code with the offending line marked problem
'Set ChartSpace1 = CreateObject("OWC.Chart")
Set ChartSpace1 = CreateObject("OWC11.Chartspace")

ChartSpace1.Clear
Set c = ChartSpace1.Constants
ChartSpace1.Border.Color = c.chColorNone
' Add a chart and set parameters for the chart
ChartSpace1.Charts.Add
ChartSpace1.Charts(0).Type = ChartSpace1.Constants.chChartTypeLinemarkers
ChartSpace1.Charts(0).SeriesCollection.Add
ChartSpace1.Charts(0).SeriesCollection(0).Caption = "Fund"
ChartSpace1.Charts(0).SeriesCollection(0).SetData c.chDimCategories, c.chDataLiteral, A
ChartSpace1.Charts(0).SeriesCollection(0).SetData c.chDimValues, c.chDataLiteral, B
ChartSpace1.Charts(0).SeriesCollection.Add
ChartSpace1.Charts(0).SeriesCollection(1).Caption = "Index"
ChartSpace1.Charts(0).SeriesCollection(1).SetData c.chDimValues, c.chDataLiteral, D
ChartSpace1.Charts(0).HasLegend = True
ChartSpace1.Charts(0).HasTitle = True
ChartSpace1.Charts(0).Title.Caption = "Growth of $1,000"
ChartSpace1.Charts(0).Title.Font.Name = "Tahoma"
ChartSpace1.Charts(0).Title.Font.Size = 10
ChartSpace1.Charts(0).Title.Font.Bold = True
PROBLEM:
'ChartSpace1.Charts(0).Axes(1).TickLabelSpacing = 12
ChartSpace1.Charts(0).Axes(0).NumberFormat = "#,##0"
ChartSpace1.Charts(0).Axes(0).Scaling.Minimum = 900
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On