ÕÒ»ØÃÜÂë
 Á¢¼´×¢²á

QQ怬

Ö»ÐèÒ»²½£¬¿ìËÙ¿ªÊ¼

hr5204562
ÂÛ̳ԪÀÏ   /  ·¢±íÓÚ£º2014-9-23 15:03  /   ²é¿´£º7736  /  »Ø¸´£º8

ËäÈ»´æÔÚµÚÎåÒ³£¬µ«ÊÇ´òÓ¡ÉèÖÃÀïÃ滹ÊÇÈÏΪ²»¶àÓÚ1Ò³£¬ËùÒÔÖ»ÓÐÑ¡ÔñÈ«²¿£¬ÎÞ·¨ÉèÖôòÓ¡Ò³Âë¡£
        private void withCustomizedDialogToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            PrintDialog myPrintDialog = new PrintDialog();
            PrintDocument myPrintDocument = new PrintDocument();

            myPrintDialog.Document = myPrintDocument;
            myPrintDialog.AllowSomePages = false;
            myPrintDialog.AllowPrintToFile = false;
            myPrintDialog.PrinterSettings.FromPage = 3;
            myPrintDialog.PrinterSettings.ToPage = 5;

            if (myPrintDialog.ShowDialog() == DialogResult.OK)
            {
                textControl1.Print(myPrintDocument);
            }
        }
QQͼƬ20140923150100.jpg (60.64 KB, ÏÂÔØ´ÎÊý: 282)

8 ¸ö»Ø¸´

µ¹Ðòä¯ÀÀ
hr5204562
ÂÛ̳ԪÀÏ   /  ·¢±íÓÚ£º2014-9-23 15:05:00
ɳ·¢
QQͼƬ20140923145637.jpg (156.49 KB, ÏÂÔØ´ÎÊý: 312)
»Ø¸´ ʹÓõÀ¾ß ¾Ù±¨
Alice
ÉçÇø¹±Ï××é   /  ·¢±íÓÚ£º2014-9-23 20:02:00
°åµÊ
»Ø¸´ 2Â¥hr5204562µÄÌû×Ó

ÓйشòÓ¡¿ÉÒԲο¼ÎÒÃǵIJ©¿Í£º
http://blog.gcpowertools.com.cn/ ... Ï£¨3£©´òÓ¡²Ù×÷.aspx
¸ù¾ÝÄãµÄÐèÇóºÍ´úÂ룬ÐèÒª½«PrintDialogµÄAllowSomePagesÊôÐÔÉèÖÃΪtrue£¬PageOptionµÄRadiobutton²Å»á±ä³É¿ÉÓÃ״̬¡£
Çëµã»÷ÆÀ·Ö£¬¶ÔÎҵķþÎñ×ö³öÆÀ¼Û£¡  5·ÖΪ·Ç³£ÂúÒ⣡

ÆÏÌѳǿؼþ·þÎñÍŶÓ

¹Ù·½ÍøÕ¾: http://www.gcpowertools.com.cn
»Ø¸´ ʹÓõÀ¾ß ¾Ù±¨
hr5204562
ÂÛ̳ԪÀÏ   /  ·¢±íÓÚ£º2014-9-24 11:07:00
µØ°å
»Ø¸´ 3Â¥AliceµÄÌû×Ó

ÓÐûÓв»µ¯¿òÖ±½Ó´òÓ¡3-5Ò³£¬»òÕßµ¯¿òĬÈÏÑ¡ÖÐÒ³Âë´òÓ¡
»Ø¸´ ʹÓõÀ¾ß ¾Ù±¨
Alice
ÉçÇø¹±Ï××é   /  ·¢±íÓÚ£º2014-9-24 11:29:00
5#
»Ø¸´ 4Â¥hr5204562µÄÌû×Ó

3Â¥µÄÁ´½Ó£ºhttp://blog.gcpowertools.com.cn/post/2012/11/16/TX-Text-Control-NET-²úƷʹÓÃÖ¸ÄÏ£¨3£©´òÓ¡²Ù×÷.aspx
²©¿ÍÀïÓÐÏêϸµÄ²Ù×÷£¬µÚÈý½Ú½éÉܵľÍÊÇÖ±½Ó´òÓ¡¡£´úÂë²Î¿¼£º
  1. private void mnuFile_Print_WithoutDialog_Click(object sender, System.EventArgs e)
  2. {
  3.     PrintDocument myPrintDocument = new PrintDocument();
  4.     myPrintDocument.PrinterSettings.FromPage = 1;
  5.     myPrintDocument.PrinterSettings.ToPage = 3;
  6.     txTextControl1.Print(myPrintDocument);
  7. }
¸´ÖÆ´úÂë
Çëµã»÷ÆÀ·Ö£¬¶ÔÎҵķþÎñ×ö³öÆÀ¼Û£¡  5·ÖΪ·Ç³£ÂúÒ⣡

ÆÏÌѳǿؼþ·þÎñÍŶÓ

¹Ù·½ÍøÕ¾: http://www.gcpowertools.com.cn
»Ø¸´ ʹÓõÀ¾ß ¾Ù±¨
hr5204562
ÂÛ̳ԪÀÏ   /  ·¢±íÓÚ£º2014-9-24 11:41:00
6#
»Ø¸´ 5Â¥AliceµÄÌû×Ó

¾ÍÊÇÄãÃǵÄÕâ¸öÀý×Ó£¬µ«ÊÇÕâÑùÉèÖÃÎÞÓÃ
»Ø¸´ ʹÓõÀ¾ß ¾Ù±¨
Alice
ÉçÇø¹±Ï××é   /  ·¢±íÓÚ£º2014-9-24 18:19:00
7#
»Ø¸´ 6Â¥hr5204562µÄÌû×Ó

ÇëÎÊ£¬ÊÇÈçºÎÉèÖÃÎÞÓã¿ÊÇ˵Õâ¸öÖµÉèÖÃÍêÁË´òÓ¡³öÀ´²»ÊÇ1µ½3ҳô£¿»¹ÊÇÆäËûµÄÒâ˼£¿
Çëµã»÷ÆÀ·Ö£¬¶ÔÎҵķþÎñ×ö³öÆÀ¼Û£¡  5·ÖΪ·Ç³£ÂúÒ⣡

ÆÏÌѳǿؼþ·þÎñÍŶÓ

¹Ù·½ÍøÕ¾: http://www.gcpowertools.com.cn
»Ø¸´ ʹÓõÀ¾ß ¾Ù±¨
hr5204562
ÂÛ̳ԪÀÏ   /  ·¢±íÓÚ£º2014-9-25 11:22:00
8#
»Ø¸´ 7Â¥AliceµÄÌû×Ó

private void withoutDialogToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PrintDocument myPrintDocument = new PrintDocument();

            myPrintDocument.PrinterSettings.FromPage = 2;
            myPrintDocument.PrinterSettings.ToPage = 3;
            textControl1.Print(myPrintDocument);
        }
ÕâÑùµÄ´úÂ룬ÒÀÈ»»á´òÓ¡1,2,3ÈýÒ³£¬¶ø²»ÊÇ2,3ÕâÁ½Ò³¡£Ò²¾ÍÊÇ˵»¹ÊÇ´òÓ¡µÄÈ«²¿
»Ø¸´ ʹÓõÀ¾ß ¾Ù±¨
Alice
ÉçÇø¹±Ï××é   /  ·¢±íÓÚ£º2014-9-25 14:23:00
9#
»Ø¸´ 8Â¥hr5204562µÄÌû×Ó

Èç¹û´òÓ¡Ìض¨µÄÒ³£¬³ýÁËFromPageºÍToPage£¬»¹ÐèÒªÉèÖÃPrintRangeÊôÐÔ¡£
ÇëÌí¼Ó´úÂ룺
  1. myPrintDoc.PrinterSettings.PrintRange = PrintRange.SomePages;
¸´ÖÆ´úÂë
Çëµã»÷ÆÀ·Ö£¬¶ÔÎҵķþÎñ×ö³öÆÀ¼Û£¡  5·ÖΪ·Ç³£ÂúÒ⣡

ÆÏÌѳǿؼþ·þÎñÍŶÓ

¹Ù·½ÍøÕ¾: http://www.gcpowertools.com.cn
»Ø¸´ ʹÓõÀ¾ß ¾Ù±¨
ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | Á¢¼´×¢²á
·µ»Ø¶¥²¿