Gridlines and DashStyle

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
CitoTChartUser
Newbie
Newbie
Posts: 8
Joined: Mon Mar 01, 2004 5:00 am

Gridlines and DashStyle

Post by CitoTChartUser » Mon May 23, 2005 1:52 pm

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]

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon May 23, 2005 2:56 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Holger Persch
Newbie
Newbie
Posts: 8
Joined: Mon Mar 14, 2005 5:00 am
Location: Germany

Post by Holger Persch » Wed May 25, 2005 6:08 am

I experienced the same problem, but I can't use other formats.

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed May 25, 2005 9:46 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Holger Persch
Newbie
Newbie
Posts: 6
Joined: Mon Mar 14, 2005 5:00 am
Location: Germany

Post by Holger Persch » Tue Jun 28, 2005 11:14 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jun 28, 2005 11:36 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jul 05, 2005 8:49 am

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");
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Holger Persch
Newbie
Newbie
Posts: 8
Joined: Mon Mar 14, 2005 5:00 am
Location: Germany

Post by Holger Persch » Wed Jul 06, 2005 8:06 am

Hi Narcís,

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jul 06, 2005 9:52 am

Hi Holger,

Yes, it is a new version 2 feature.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply