Jump to content
Software FX Community

Problem Exporting to BMP


User (Legacy)

Recommended Posts

Posted

Hi,

I'm having trouble exporting a chart to a bmp file. The problem is that if

I have 4 or more series on my chart, only 3 show up in the file.

chtMain.SerLegBoxObj.Docked = TGFP_BOTTOM

chtMain.SerLegBox = True

chtMain.SerLegBoxObj.Font.Size = 12

chtMain.SerLegBoxObj.BorderStyle = BBS_MONO

chtMain.SerLegBoxObj.SizeToFit

chtMain.SerLegBoxObj.SkipEmpty = True

chtMain.SerLegBoxObj.AutoSize = True

chtMain.Export CHART_BITMAP, "C:\Chart1.bmp"

I've attached the file as a jpg because the bmp file was too large.

Anyone have any ideas on why this is happening??

Thanks!

Attachments.zip

Posted

The following code will fix it:

ChartFX1.SerLegBoxObj.Docked = TGFP_BOTTOM

ChartFX1.SerLegBox = True

ChartFX1.SerLegBoxObj.Font.Size = 12

ChartFX1.SerLegBoxObj.BorderStyle = BBS_MONO

ChartFX1.SerLegBoxObj.SkipEmpty = True

ChartFX1.SerLegBoxObj.AutoSize = True

ChartFX1.SerLegBoxObj.SizeToFit

ChartFX1.Export CHART_BITMAP, "C:\Chart1.bmp"

Notice that I moved SizeToFit to the LAST place, assigning AutoSize=True is

unnecessary (this is the default) but it does no harm.

--

FP

Software FX, Inc.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...