ÔÚAsp.net(C#) ÖÐʹÓà ReportViewer
a. ReportViewer¹ØÁªReport1.rdlcµÄ¼òµ¥³ÊÏÖ
b. ¶Ô´øÓб¨±í²ÎÊýµÄReport1.rdlcµÄ³ÊÏÖ
c.
ÀûÓóÌʽÉú³ÉµÄDataSet Ìî³ä±¨±í
d. µ÷Óô洢¹ý³Ì Éú³ÉDataSet Ìî³ä±¨±í
==========
¼òµ¥µÄ³ÊÏÖ
==========
1. ´ò¿ªVS2005£¬Îļþ->н¨->ÍøÕ¾ Ñ¡ÔñÓïÑÔÖÖÀࣨC#£©
2. Ôڸýâ¾ö·½°¸ÏÂ
Éè¼ÆÆäÒѾÉú³ÉµÄDefault.aspx
3. ½«¹¤¾ßÏä-Êý¾ÝϵÄReportViewer ÀÈëDefault.aspxµÄÉè¼Æ½çÃæ
4.
ÔÚÓÃÊó±êÑ¡ÖÐReportViewer1ʱ ¿ÉÒÔ¿´µ½ÆäÓÒÉÏ½ÇµÄ Ð¡Èý½Ç ͼ±ê
5. ÓÃÊó±êµã»÷¸ÃСÈý½Ç ½«Õ¹¿ª ReportViewerÈÎÎñ
¿ì½Ý²Ëµ¥
6. ÓÉÓÚ±¾ÏîÄ¿ Ä¿Ç°»¹Ã»ÓÐ×öºÃµÄ±¨±í ËùÒÔ Ñ¡Ôñ Éè¼Æб¨±í
7. µã»÷ Éè¼Æб¨±í ºó
½«³ÊÏÖ±¨±íReport1.rdlcµÄÉè¼Æ½çÃæ
8. ÓÉÓÚ±¾ÏîÄ¿ Ä¿Ç°»¹Ã»ÓÐ×öºÃµÄÍøÕ¾Êý¾ÝÔ´
ËùÒÔ ´ËʱҪÌí¼ÓÐÂÊý¾ÝÔ´
£¨Èç¹ûûÓгÊÏÖ“ÍøÕ¾Êý¾ÝÔ´”½çÃ棬¿ÉÒÔµã»÷±¨±íÉè¼Æ½çÃ棬
´ËʱÉÏ·½²Ëµ¥Öжà³öÏÖ“Êý¾Ý”£¬“±¨±í”µÈÑ¡Ïî
¿ÉÒÔÔÚ“Êý¾Ý”²Ëµ¥Ï£¬Ñ¡Ôñ“ÏÔʾÊý¾ÝÔ´”£©
9. µã»÷“Ìí¼ÓÐÂÊý¾ÝÔ´” »á³öÏÖ“TableAdapter ÅäÖÃÏòµ¼”
10.
Ñ¡ÔñÊý¾ÝÁ¬½Ó£¨ÈçÁ¬½Óµ½±¾»úµÄNorthwindÊý¾Ý¿â£©£¬ÏÂÒ»²½
11. Ñ¡ÔñÊÇ·ñÒª½«Á¬½Ó×Ö·û´®±£´æµ½Ó¦ÓóÌÐòÅäÖÃÎļþÖУ¬ÏÂÒ»²½
12.
Ñ¡ÔñÃüÁîÀàÐÍ£¬´Ëʱ ¿ÉÒÔ µã»÷ È¡Ïû °´Å¥£¬Í˳öÏòµ¼
13. È«²¿±£´æ
14. Ñ¡Ôñ ÊÓͼ ²Ëµ¥ Ï “·þÎñÆ÷×ÊÔ´¹ÜÀíÆ÷”£¬
¿ÉÒÔ¿´µ½¸Õ²ÅËù½¨Á¢µÄÊý¾ÝÁ¬½Ó£¬
¿ÉÒÔ¿´µ½NorthwindÊý¾Ý¿âÏÂµÄ±í£¬ÊÓͼ£¬´æ´¢¹ý³Ì£¬º¯Êý
15. ÔÚ½â¾ö·½°¸µÄÊ÷ÏÂ
ÕÒµ½²¢´ò¿ªApp_CodeÎļþ¼ÐϵÄDataSet1.xsdÊý¾Ý¼¯
16. ¿ÉÒÔ¿´µ½ ´ò¿ªµÄÊý¾Ý¼¯Éè¼ÆÆ÷
Êǿյģ¬´Ëʱ¿ÉÒÔ½«“·þÎñÆ÷×ÊÔ´¹ÜÀíÆ÷”
ϵÄNorthwindµÄ±í»ò´æ´¢¹ý³ÌµÈ ÀÈë Êý¾Ý¼¯Éè¼ÆÆ÷
£¨Èç´Ëʱ ÀÈëÁËOrders±í
ºÍ Sales by YearÕâ¸ö´æ´¢¹ý³Ì£©
17. È«²¿±£´æ
18. Ë«»÷Report1.rdlc,´ò¿ª±¨±íÉè¼Æ½çÃæ
½«´ËʱµÄ±¨±íÉè¼Æ¹¤¾ßÏäÖÐµÄ ±¨±íÏî µÄ ±í ÀÈë ±¨±íÉè¼Æ½çÃæ
19. Ñ¡Ôñ “Êý¾Ý”²Ëµ¥ÏµēÏÔʾÊý¾ÝÔ´”£¬
¿ÉÒÔÔÚÍøÕ¾Êý¾ÝÔ´Ï ¿´µ½
DataSet1 Ï嵀 Á½¸ö ±í Orders ºÍ Sales by Year
20. ´ËʱѡÔñOrdersϵÄÈÎÒâ×ֶΠ£¨ÈçOrde
Ïà¹ØÎĵµ£º
SqlserverÕⶫÎ÷ûÉÙ¸úËû´ò½»µÀ,¸Õѧ¿ª·¢ÓïÑÔʱ¾ÍÒѾ¸úËû½Ó´¥ÁË,²»ÒªËµºÜ¾«Í¨,µ«¾ÍÓï·¨»¹ËãÊÇÊìϤ,µ«ÏÖÔÚ¿ªÊ¼Ð´C#,·¢ÏÖºÜC#¶àÁËÒ»ÖÖSqlServerµÄ²ÎÊý´«È뷽ʽ,ÒÔÍùÎÒÃdz£³£¶ÔÒª´«²ÎµÄSqlÓï¾ä¶¼ÊÇÖ±½Óͨ¹ýÆ´´ÕSqlÓï¾äµÄ·½Ê½À´ÊµÏÖ,µ«ÏÖÔÚC#ΪʲôҪרÃÅ×öÒ»¸öSql²ÎÊýµÄÀàÀ´ÊµÏÖÄØ,¾¹ý²éÕÒ²ÅÖªµÀ,ÕâÑù×öÊÇÓеÀÀíµÄ,Ò»Ê ......
ÕâЩÌìÒòΪ¹¤×÷ÐèÒª£¬Òª½«Ò»Ð©htmlÎļþת»»ÎªchmÎļþ£¬µ±È»ÊÇÐèÒªºÍ³ÌÐò½áºÏÔÚÒ»Æð¡£
ºóÀ´ÕÒµ½NDoc£¬ÀïÍ·ÓÐÒ»¶Î´úÂëÊÇÏà¹ØµÄ£¬ÓÚÊÇ¿ªÊ¼·ÖÎö´úÂ룬дÍêÖ®ºó£¬×ܽ᣺Ö÷ÒªÊÇÀûÓÃ΢ÈíµÄhhc.exeÀ´±àÒëhtmlÎļþ£¬³ÌÐòÐèÒª½«¾ßÌåµÄÊý¾ÝдÈëhhpºÍhhcÎļþ¡£
Ö÷Òª´úÂëÈçÏ£º
¸´ÖÆC#´úÂë±£´æ´úÂëpublic void CompileProject()
{ ......
ÓëASPÏà±È£¬ASP.NETÔںܶ෽ÃæÓÐÁËÏÔÖøµÄ¸Ä½ø£¬ÕâЩ·½Ãæ°üÀ¨£ºÐÔÄÜ¡¢×´Ì¬¹ÜÀí¡¢¿ÉËõ·ÅÐÔ¡¢ÅäÖᢲ¿Êð¡¢°²È«ÐÔ¡¢Êä³ö»º´æ¿ØÖÆ¡¢ÍøÂ糡֧³ÖºÍXML Web services½á¹¹µÈ¡£
Èç¹ûÄú¾ßÓÐASP ¿ª·¢¼¼ÄÜ£¬ÔòÐ嵀 ASP.NET ±à³Ì ......
Ò»¡¢ÈÏʶWeb.configÎļþ
¡¡¡¡Web.configÎļþÊÇÒ»¸öXMLÎı¾Îļþ£¬ËüÓÃÀ´´¢´æ ASP.NET Web Ó¦ÓóÌÐòµÄÅäÖÃÐÅÏ¢£¨Èç×î³£ÓõÄÉèÖÃASP.NET Web Ó¦ÓóÌÐòµÄÉí·ÝÑéÖ¤·½Ê½£©£¬Ëü¿ÉÒÔ³öÏÖÔÚÓ¦ÓóÌÐòµÄÿһ¸öĿ¼ÖС£µ±Äãͨ¹ýVB.NETн¨Ò»¸öWebÓ¦ÓóÌÐòºó£¬Ä¬ÈÏÇé¿öÏ»áÔÚ¸ùĿ¼×Ô¶¯´´½¨Ò»¸öĬÈϵÄ
Web.co ......
Asp.Net ¹¹¼Ü(Http Handler ½éÉÜ) - Part.2
ÒýÑÔ
ÔÚ Part.1 HttpÇëÇó´¦ÀíÁ÷³Ì Ò»ÎÄÖУ¬ÎÒÃÇÁ˽âÁËHttpÇëÇóµÄ´¦Àí¹ý³ÌÒÔ¼°ÆäËüһЩÔË×÷ÔÀí¡£ÎÒÃÇÖªµÀHttp¹ÜµÀÖÐÓÐÁ½¸ö¿ÉÓýӿڣ¬Ò»¸öÊÇIHttpHandler£¬Ò»¸öÊÇIHttpModule£¬µ«ÔÚPart.1ÖУ¬ÎÒ²¢Ã»ÓÐÏêϸ½²ÊöÈçºÎ¶ÔËüÃǽøÐбà³Ì£¬Ö»ÊÇÇáÃèµÐ´µØÒ»±Ê´ø¹ý¡£ËùνѧÒÔÖÂÓã¬Ç°ÃæÒÑ ......