Solved

mschart  - how to represent the line instead of color

Posted on 2002-06-24
1
427 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

809 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