Jump to content
Software FX Community

Printing part of the Chart


User (Legacy)
 Share

Recommended Posts

I am trying to implement printing in my application and I have a problem. 

I want to let the user print what is displayed in the chart area efter for

example zooming the chart. What happens is that when the chart is printed I

only get the last portion of it.

It seems like the Paint function divides the chart into sections as big as

the section zoomed in and sends the last one to the printer.

I use Paint since I put a header on top of the page.

Has anyone some suggestion on how to solve this in VC++?

Regards,

Erik Alsmyr

Link to comment
Share on other sites

  • 1 year later...

I have the same sort of problem.  After allowing the user to zoom into a

section, I want him to be able to print *just* that section. Instead what I

get is multiple pages, each zoomed to a factor that is about what the user

has zoomed to. Also, the section that he zoomed into is invariably (unless

pure luck intervenes) spread across two pages.

Whatever happened to WYSIWYG? How do I get it to print *just* what the user

has shown?

Bill Flynn

wflynn@endvr.com

"Erik Alsmyr" <erik.alsmyr@home.se> wrote in message

news:WB5vx7yr8GA.1696@webserver1.softwarefx.com...

> I am trying to implement printing in my application and I have a problem.

>

> I want to let the user print what is displayed in the chart area efter for

> example zooming the chart. What happens is that when the chart is printed

I

> only get the last portion of it.

>

> It seems like the Paint function divides the chart into sections as big as

> the section zoomed in and sends the last one to the printer.

>

> I use Paint since I put a header on top of the page.

>

> Has anyone some suggestion on how to solve this in VC++?

>

> Regards,

> Erik Alsmyr

>

>

>

Link to comment
Share on other sites

You can use the PrintIt method as follows:

Chart1.PrintIt -1, -1

You can also use the Paint method to further customize your printed output.

The default toolbar button prints all the pages, we think this is the most

appropriate default as it is independent of the user view, kinda like in a

word processor, when you print the default is to print the entire document

not the section your have 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...