When users need to print two CAD drawing controls, may be employed to achieve the nested print. Implement nested print function, the first two pages into CAD controls, C # code is as follows:
void BatchPrintDialog Private () { MxDrawPrint Print new new MxDrawPrint = (); // start printing. print.BeginNestedPrint (); // = 0 indicates iflag margins, iFlag = 1 represents the position of the print area of a rectangular frame print.Flag = 1; // print zone position (10,10,200,100), a coordinate system, X from left to right, Y top to bottom. left margin of printing // distance print.dLeftPageMargin = 10; margin printing // the top distance print.dTopPageMargin = 10; right margin of the print from // print.dRightPageMargin = 200; margins // print below from print.dBottomPageMargin = 100; // print the contents of the screen , print the first control. axMxDrawX1.MakeCurrentOcx (); print.PrintScreen (); // print zone position (10,110,200,210), a coordinate system, X from left to right, Y top to bottom. margin from the upper side of the printed // print.dTopPageMargin = 110; // print margins below the distance print.dBottomPageMargin = 210; // print to screen content, and a second printing control. axMxDrawX2.MakeCurrentOcx (); print.PrintScreen (); // End nested print print.EndNestedPrint (); }