Home > Net >  C # Winform print adaptive interface panel
C # Winform print adaptive interface panel

Time:09-20


//print content Settings
Private void printDocument1_PrintPage (object sender, System. Drawing. Printing. PrintPageEventArgs e)
{


////print content for local enclosing panel1
Bitmap _NewBitmap=new Bitmap (panel1. Width, panel1. Height);
Panel1. DrawToBitmap (_NewBitmap, new Rectangle (0, 0, _NewBitmap Width, _NewBitmap, Height));
Um participant raphics. DrawImage (_NewBitmap, 0, 0, _NewBitmap Width, _NewBitmap, Height);


}

CodePudding user response:

It looks very strange and picture form to print very fuzzy but I want to do is tag printing function that baffled me

CodePudding user response:

What are you going to adapt to the interface

CodePudding user response:

refer to the second floor Bridge_go response:
what are you going to adapt to the interface
I want to faithfully the print preview of the panel above is not because the picture form so fuzzy narrowed and if he can own paging panel is very long

CodePudding user response:

Reference to see
Cs
http://bbs.cskin.net/thread-15956-1-1.html Report_PrintPage inside.
  •  Tags:  
  • C#
  • Related