Jump to content
Software FX Community

Problem Exporting to BMP


User (Legacy)
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...