Page 1 of 1

Gridlines and DashStyle

Posted: Mon May 23, 2005 1:52 pm
by 8123986
Hello,

We export a tchart to a metaFile. Solid Lines look the way they should but other styles (like dot, dashdot or dashdotdot) are too big.

Compared to a line with the same height and width it looks about twice as fat. When printed out or in preview mode it's almost impossible to see that the style is dotted (it looks like the dot's and dashes that makeup the line overdraw eachother).

What can we do to make dotted lines smaller/look better?

Regards, Jan[/img]

Posted: Mon May 23, 2005 2:56 pm
by narcis
Hello Jan,
We export a tchart to a metaFile. Solid Lines look the way they should but other styles (like dot, dashdot or dashdotdot) are too big.

Compared to a line with the same height and width it looks about twice as fat.
Yes, you are right. I've already added to our defect list to be fixed for future versions. In the meantime you could use other formats as .bmp or .png which already work fine.
When printed out or in preview mode it's almost impossible to see that the style is dotted (it looks like the dot's and dashes that makeup the line overdraw eachother).
That's the .NET Framework's DashStyle implementation. However zooming thep print preview or even increasing line's width will help you appreciating the style.

Posted: Wed May 25, 2005 6:08 am
by 8731282
I experienced the same problem, but I can't use other formats.

Will the fix be included in TeeChart.Net version 2.0?

Posted: Wed May 25, 2005 9:46 am
by narcis
Hi Holger,

It's being investigated. However, if the problem is related to Microsoft basic classes there won't be anything we can do. That's why we can't tell you for sure if this problem will be solved.

Posted: Tue Jun 28, 2005 11:14 am
by 8886281
Hi,

Was the problem addressed in version 2 or is it related to basic classes contained in the .NET framework?

If it is related to the .NET framework, do you know if Microsoft is aware about it or have you sent a bug report to Microsoft?

Regards,
Holger Persch

Posted: Tue Jun 28, 2005 11:36 am
by narcis
Hi Holger,

We are going to test it using TeeChart for .NET v2 in Visual Studio .NET 2005 Beta which uses Microsoft .NET v2 Framework and will get back to you with the results and our conclusion.

Posted: Tue Jul 05, 2005 8:49 am
by narcis
Hi Jan and Holger,

We have found that this is not a bug, just using the code below solves that problem.

Code: Select all

tChart1.Export.Image.Metafile.EMFFormat = System.Drawing.Imaging.EmfType.EmfPlusDual; //this is important
tChart1.Export.Image.Metafile.Save(@"C:\Temp\test1.emf");

Posted: Wed Jul 06, 2005 8:06 am
by 8731282
Hi NarcĂ­s,

Is the "EMFFormat" property new with TeeChart.NET V2? I can't find it in version 1.

Posted: Wed Jul 06, 2005 9:52 am
by narcis
Hi Holger,

Yes, it is a new version 2 feature.