Search found 8 matches

by CitoTChartUser
Tue May 31, 2005 9:41 am
Forum: .NET
Topic: Metafile export under windows 98 causesInvalidOperationExcep
Replies: 5
Views: 8621

Hello Narcis,

Changing the following lines

Code: Select all

      'bmp = New Bitmap(chart.Width, chart.Height, PixelFormat.Format32bppArgb)
      'g = Graphics.FromImage(bmp)
into

Code: Select all

      g = chart.CreateGraphics
solves our problem, the reason remains unclear to me...


Regards, Jan
by CitoTChartUser
Thu May 26, 2005 8:35 pm
Forum: .NET
Topic: Metafile export under windows 98 causesInvalidOperationExcep
Replies: 5
Views: 8621

Alternative does not work

The function 'SaveChartToAMetafile' works fine under w2k or wxp but under w98 we get the following error. System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. at System.Drawing.Imaging.Metafile..ctor(Stream stream, IntPtr referenceHdc, EmfType type, String description)...
by CitoTChartUser
Wed May 25, 2005 8:36 am
Forum: .NET
Topic: Metafile export under windows 98 causesInvalidOperationExcep
Replies: 5
Views: 8621

Metafile export under windows 98 causesInvalidOperationExcep

Hello, Public Shared Function GetImage(ByVal chart As TChart) As Image Dim strm As New IO.MemoryStream With chart.Export.Image.Metafile .Enhanced = True .Width = chart.Width .Height = chart.Height .Save(strm) strm.Position = 0 End With Dim img As Image = Image.FromStream(strm) strm.Flush() Return im...
by CitoTChartUser
Mon May 23, 2005 1:52 pm
Forum: .NET
Topic: Gridlines and DashStyle
Replies: 8
Views: 12299

Gridlines and DashStyle

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 styl...
by CitoTChartUser
Thu May 19, 2005 2:40 pm
Forum: .NET
Topic: MetaFile Export and Windows 98
Replies: 5
Views: 8637

Thanks Narcis,

Uncommenting 'strm.Close() 'problematic line solved it.

Did you find the creason why you can't export to MetaFile under windows 98 already?

Regards, Jan
by CitoTChartUser
Thu May 19, 2005 1:01 pm
Forum: .NET
Topic: MetaFile Export and Windows 98
Replies: 5
Views: 8637

Yes we can create a metafile UNDER windows 98 using the .NET native methods. We only use area's and 'standard lines' (not dotted, because they look too fat/ugly anyway). This is a real problem for us, we are able to export to PNG under w98 (but the image looks too ugly, so we would like see this fix...
by CitoTChartUser
Wed May 18, 2005 1:59 pm
Forum: .NET
Topic: MetaFile Export and Windows 98
Replies: 5
Views: 8637

MetaFile Export and Windows 98

Under Windows 2000 and XP I can succesfully export a Tchart to an image using: Public Shared Function GetImage(ByVal chart As TChart) As Image Dim strm As New IO.MemoryStream With chart.Export.Image.Metafile .Enhanced = True .Width = chart.Width .Height = chart.Height .Save(strm) strm.Position = 0 E...
by CitoTChartUser
Wed Apr 27, 2005 11:16 am
Forum: .NET
Topic: Export Mefafile does not work
Replies: 1
Views: 4476

Export Mefafile does not work

Saving to file.emf always creates a file with lengt=0, i can save the same chart to other formats succesfully (like png, bmp, jpg). I'm using Teechart Pro for Visual Studion.NET V1 runtime version : v1.1.4322, version: 1.1.1499.42325 '--> this works fine!! Public Shared Sub SavePNGImage(ByVal chart ...