Solved

mschart  - how to represent the line instead of color

Posted on 2002-06-24
1
443 Views
Last Modified: 2012-05-04
hi,
I have a mschart in my vb form.
I set the chart type to 2DLine.
Inside this chart,there are 3 lines where by the data is read
from the database.
During the run-time,the output is pretty good,each line is represent
with different colour.
But when I print the chart (Using a non-color printer).Then
I can't differenziate which line represent which line...
So I am wondering is there any method to represent the line in mschart
instead of color?

Thank You in advance.
0
Comment
Question by:boyyle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 15

Accepted Solution

by:
ameba earned 100 total points
ID: 7106602
Yes, there is.  Change the Style of the Pen object.
You can also change the width of the Pen - default is 40 (a bit too wide)

                MSChart1.SeriesCollection(1).Pen.Style = VtPenStyle.VtPenStyleDashed
                MSChart1.SeriesCollection(1).Pen.Width = 10


or change line style like this:

                Select Case CurSeries Mod 5
                Case 0
                    ps = VtPenStyleDashDotDot
                Case 1
                    ps = VtPenStyleSolid
                Case 2
                    ps = VtPenStyleDashed
                Case 3
                    ps = VtPenStyleDotted
                Case 4
                    ps = VtPenStyleDitted
                End Select
                MSChart1.SeriesCollection(CurSeries).Pen.Style = ps
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month4 days, 8 hours left to enroll

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question