Jump to content
Software FX Community

Repeat of an old Post


User (Legacy)
 Share

Recommended Posts

I posted the message below last week and did not get a response for ChartFX

Support. I would very much like to know whether this is a bug or if I'm

doing something wrong. If it is a bug, is a fix forthcoming? Please

respond.

Thanks, Steve Werkema

Previous message follows ==>

I am using Chart FX in Visual C++. I am trying to print only the portion

of a zoomed XY chart that is being displayed. My understanding is that the

following code is supposed to accomplish this:

ChartFX1->PrintIt(-1, -1);

When I do this, what gets printed is a segment of the chart that begins at

the beginning of the x-axis -- not the part of the chart being displayed.

Do you have any ideas about where I'm going wrong?

Thanks,

Steve Werkema

Fermi National Accelerator Lab

Link to comment
Share on other sites

The issue here is that the printed chart is generally a different size than

the chart in the screen.

PrintIt -1,-1

Will print the current view but it may print more, printing the chart will

keep the same PHYSICAL scaling, in other words, if the X-Axis units are 1

inc, they will be 1 inch in the printer. Because the printed page is usually

bigger than the screen, you may get more points and a bigger range when you

print.

To understand this better, please take the Scroll & Zoom sample, change the

number of points to 1000, add a button that does PrintIt(-1,-1) and run it.

Click the Zoom-in check box and hit the PrintIt button.

You will notice that the printed chart starts at the same place the chart in

the screen does (31 in X-Axis, 600 in Y-Axis) but it goes beyond what you

see in the screen.

This is by design as we don't want to DEFORM the chart. If you want to print

exactly what's on the screen, you will have to distort the chart to match

the page size. Scaling and proportions will change. To see what this will

look like you can export the chart as a metafile and print it in a full

page. You can use this method (exporting to a metafile) to print only what

you see in the screen.

--

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...