Solved

mschart  - how to represent the line instead of color

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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

728 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