User (Legacy) Posted October 14, 2004 Report Share Posted October 14, 2004 How does one print the 2nd page of a chart using the chart_Paint() function? I've tried everything I can think of, but it seems this function can only print the first page of a chart that is larger than the page. Help! -- todd.augsburger@allmax.net Quote Link to comment Share on other sites More sharing options...
Software FX Posted October 15, 2004 Report Share Posted October 15, 2004 You need to scroll the chart using the SetScrollView method, feed a new page and then call Paint again. In order to determine what was the last point painted (so that you can scroll appropriately) you need to capture the PostPaint event and call GetScrollView to retrieve the current page's view. -- FP Software FX 2 ERRORS.txt Quote Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 15, 2004 Author Report Share Posted October 15, 2004 This partially solves my problem ... can we continue? 1) I scroll to the appropriate starting point 2) I paint to the printer DC--OK 3) In the PostPaint event, I get the Scroll values--OK 4) Repeat ... But I cannot scroll to the end. Since the chart is on the screen, and my DC is a different size, the maximum scrolling position of the screen limits the amount I can scroll to the right, and it's not always far enough. Do I somehow need to temporarily change the maximum scroll, or what? Thank you--we're moving in the right direction ... -- -Todd todd.augsburger@allmax.net Quote Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 15, 2004 Author Report Share Posted October 15, 2004 One solution to the last issue is to temporarily resize the graph window to 1 pixel, so that any scrolling is possible. Is there a better solution? -- -Todd todd.augsburger@allmax.net Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.