Right now I'm trying to use the built in printmanager to print a line chart. The lines are annoyingly light in color and I can't figure out how to make them darker.
From looking at the documentation I thought I'd just turn off autoquality and increate the quality value but no matter what I set it to I still just get really fine gray lines.
I tried going through and changing the line widths to various values and it still prints thin lines.
Here's my code:
Dim VoltsLine = CType(chtBattery.Charts(0).Series(0), LineSeries)
VoltsLine.LineWidth = 5
Dim AmpsLine = CType(chtBattery.Charts(0).Series(1), LineSeries)
AmpsLine.LineWidth = 5
Dim TempLine = CType(chtBattery.Charts(0).Series(2), LineSeries)
TempLine.LineWidth = 5
chtBattery.Refresh()
chtBattery.PrintManager.AutomaticQualityScale = False
chtBattery.PrintManager.QualityScale = 2
chtBattery.PrintManager.Landscape = True
chtBattery.PrintManager.ShowDialog()
Is there something wrong with that code? Is there reason to believe that shouldn't increase the thickness of the lines before printing? I can't use markers for the line because I have hundreds of data points so it would make the chart look bad. Is it because it's a 2D chart? Would I be able to do it if I didn't use the built in printmanager, is the printmanager overriding my line widths or something?
By the way, I have noticed that the printmanager doesn't limit the quality setting at all. I can easily cause the printmanager to throw an exception by setting quality to something like 100. I started increasing it slowly and got an out of memory exception at around 15. I was increasing the value and clicking the update button on the printmanager (this was in the print demo from your chart explorer so I know it wasn't my code causing the problem).
I've also noticed that not all printmanager settings get carried over into the dialog. For instance I can turn off auto quality, set quality to 2 and set landscape to true. When I run ShowDialog the quality settings are set right but orientation is set to portrait.
Thanks in advance for any help you can provide.
Steve