Jump to content
Software FX Community

print aspect ratio

User (Legacy)

Recommended Posts

ok, I need a little help here:

in frmChart_Resize() :

' note frmChart has ChartFX1 in it.

with ChartFX1

ratio = (.Axis(AXIS_Y).max - .Axis(AXIS_Y).min) /

(.Axis(AXIS_X).max - .Axis(AXIS_X).min)

oldscale = frmChart.ScaleMode

.Height = frmChart.Height - 1000

.Width = frmChart.Width - 120


frmChart.ScaleMode = vbPixels

.RightGap = -(.Height - .TopGap - .BottomGap) / ratio - .LeftGap +


frmChart.ScaleMode = oldscale If .RightGap < MIN_RIGHT_GAP Then


frmChart.ScaleMode = vbPixels

.BottomGap = -(.Width - .LeftGap - .RightGap) * ratio -

.TopGap + .Height

frmChart.ScaleMode = oldscale

End If

' Turned this off cause it seemed to do nothing for it.

'.Scrollable = True

'.Axis(AXIS_X).SetScrollView .Axis(AXIS_X).min, .Axis(AXIS_X).max

'.Axis(AXIS_Y).SetScrollView .Axis(AXIS_Y).min, .Axis(AXIS_Y).max

'.Axis(AXIS_X).PixPerUnit = .Axis(AXIS_Y).PixPerUnit

End With

This works 90% of the way. Its not perfect on my monitor - one of the axis

would be off by about 1cm. Can I make this better?

How woulod I enforce a perfect aspect ratio on a print job? Whats the

"Pint" method? I looked PrintIt, but thats on a page-by-page basis, and

the margins are useless if I can't tell the size of the page!

How would I do this? Thanks

In article <0wHA#qqRBHA.1444@webserver1.softwarefx.com>, "SoftwareFX

Support" <support@softwarefx.com> wrote:

> To guarantee the same aspect ratio you must:


> a) Ensure both axes contain exactly the same scale (Min, Max and

> PixPerUnit). :) Ensue both axes are the same physical size, you need to

> play with the chart size and gaps to achieve this.


> If both these conditions are met, you will get a symmetric chart.


> Note: Printing the chart resizes its contents which may break the

> symmetry. Use the Pint method to control chart dimensions when printed.

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.

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.


  • Create New...