ASP.NETË®¾§±¨±íʵÏÖ´òÓ¡¹¦ÄÜ
ASP.NETϵÄË®¾§±¨±í´òÓ¡£¬¾ÝÎÒËùÖªÓÐÒÔϼ¸ÖÖ°ì·¨¿ÉÒÔ´òÓ¡£º
1.ÓÃIEµÄ´òÓ¡£¬µ÷ÓÃwindow.print(),µ«ÕâÖÖ°ì·¨¶ÔÓÚÒ³ÃæÉϼ´Óб¨±í,ÓÖÓÐÆäËü¿Ø¼þÇé¿ö¾ÍÎÞ·¨Çø·Ö,²»ÄÜ´ïµ½Ö»´òÓ¡±¨±íÄÚÈݵÄÄ¿µÄ£»
2.×ÔÒÑд´òÓ¡´úÂë
´úÂëÈçÏ£º
ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º CrystalDecisions.CrystalReports.Engine.ReportDocument rd=new CrystalDecisions.CrystalReports.Engine.ReportDocument(); rd.Load(Server.MapPath("Crystalreport1.rpt")); rd.PrintOptions.PrinterName="´òÓ¡»úÃû³Æ"; rd.PrintToPrinter(1,true,0,0);ÆäÖÐ"´òÓ¡»úÃû³Æ":Èç¹ûÊÇÍøÂç´òÓ¡»ú,ÔÚ´òÓ¡»úÃû³ÆÇ°ÃæÒª¼ÓÉÏ"\\»úÆ÷Ãû".±¾µØ´òÓ¡»úÒ²¿ÉÒÔÏÔʾÔÚDropDownList¿Ø¼þÀïÈÃÓû§Ñ¡Ôñ:
ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º foreach(string iprt in System.Drawing.Printing.PrinterSettings.InstalledPrinters) this.DropDownList1.Items.Add(iprt);
Õâ¸ö°ì·¨¿ÉÒÔÖ»´òÓ¡±¨±íÖеÄÄÚÈÝ,ȱµã¾ÍÊDZØÐëÖ¸Ã÷´òÓ¡»úÃû³Æ.Èç¹ûÊDZ¾µØ´òÓ¡»ú»¹ºÃ°ì,¿ÉÒÔö¾Ù³öÀ´,ÈÃÓû§Ñ¡Ôñ.µ«Èç¹ûÊÇÍøÂç´òÓ¡»ú,Ëƺõ¾ÍÓÐЩÂé·³,ÎÒ»¹²»ÖªµÀÔõô°ÑÍøÂç´òÓ¡»úÁгöÀ´ÈÃÓû§Ñ¡Ôñ,»òÕß×Ô¶¯Ñ¡Ä¬ÈϵÄÍøÂç´òÓ¡»ú.
3.µ¼³öµ½PDF»òEXCEL»òÆäËü¸ñʽµÄÎļþ´òÓ¡.ʾÀý´úÂëÈçÏ£º
±¨±íÃû³Æ myrpt=new ±¨±íÃû³Æ();
ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º myrpt.ExportOptions.ExportDestinationType=CrystalDecisions.Shared.ExportDestinationType.DiskFile; myrpt.ExportOptions.ExportFormatType=CrystalDecisions.Shared.ExportFormatType.PortableDocFormat; CrystalDecisions.Shared.DiskFileDestinationOptions opt=new CrystalDecisions.Shared.DiskFileDestinationOptions(); opt.DiskFileName=@"ÎļþÃû"; myrpt.ExportOptions.DestinationOptions =opt; myrpt.Export();
ÍƼöÐÅÏ¢
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- Asp.net MVCÔ´Âë·ÖÎö--Model Validation(Se....
- .Net À¬»ø»ØÊÕ»úÖÆÔÀíºÍËã·¨£¨Ò»£©
- .netʵÌåнâ
- ·ÖÎöASP.NET¶ÁÈ¡XMLÎļþ4ÖÖ·½·¨
- »ñÈ¡ÍøÕ¾ËõÂÔͼ´úÂë
- Asp.net ¸ù¾ÝIPµØÖ·»ñÈ¡¿çÍø¶ÎmacµØÖ·º¯Êý¡¾ËѲء¿
- ¹ýÂËÃô¸Ð¹Ø¼ü×Ö¡£
- Éú³ÉÖ¸¶¨Î»ÊýµÄËæ»ú×Ö·û´®
- ¿Í»§¶Ë»ñÈ¡MACµØÖ·£¬µ½·þÎñÆ÷ÑéÖ¤
- ²½²½ÎªÓª .NETÈý²ã¼Ü¹¹½âÎö ¶þ¡¢Êý¾Ý¿âÉè¼Æ
ÆÀÂÛ