Jump to content
Software FX Community

Bug print preview zoom chart


jonathan

Recommended Posts

Hello, I have a problem in display PrintPreview or print one / two picture chart. What happens is that the

zoom in on certain areas, and ask to appear on the screen the print preview, the area zoom previous lost.

example code:

void pd_Print(object sender, PrintPageEventArgs e)

{


Graphics g = e.Graphics;


Rectangle r2 = new Rectangle(30, 30 , 1006 , 300);


MemoryStream stream2 = new MemoryStream();

chart2.Export(FileFormat.Metafile, stream2);


stream2.Position = 0;

Image metaImage2 = Image.FromStream(stream2);


g.DrawImageUnscaledAndClipped(metaImage2, r2);


stream2.Close();


}



---------------------


How could I do to the chart does not change the zoom area before?

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.

×
×
  • Create New...