{"id":393,"date":"2014-08-07T14:03:12","date_gmt":"2014-08-07T05:03:12","guid":{"rendered":"http:\/\/ocworld.net\/?p=393"},"modified":"2024-12-13T15:04:23","modified_gmt":"2024-12-13T06:04:23","slug":"c%ec%97%90%ec%84%9c-%ec%97%91%ec%85%80-%ec%82%ac%ec%9a%a9%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/www.ocworld.net\/?p=393","title":{"rendered":"C#\uc5d0\uc11c \uc5d1\uc140 \uc0ac\uc6a9\ud558\uae30"},"content":{"rendered":"<p><span style=\"font-size: 18pt; color: #000000;\">C#\uc5d0\uc11c \uc5d1\uc140 \uc0ac\uc6a9\ud558\uae30<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\">\ucc38\uace0)http:\/\/ hldec.net\/?page=3<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\">\/\/ \uc120\uc5b8\ubb38<\/span><br \/><span style=\"color: #000000;\">using System.Reflection;<\/span><br \/><span style=\"color: #000000;\">using Excel = Microsoft.Office.Interop.Excel;<\/span><\/p>\n<p><span style=\"color: #000000;\">\/\/ \uc560\ud50c\ub9ac\ucf00\uc774\uc158, \uc6cc\ud06c\ubd81, \uc6cc\ud06c\uc2dc\ud2b8 \ub4f1 \ubcc0\uc218 \ucd08\uae30\ud654<\/span><br \/><span style=\"color: #000000;\">Excel.Application xlApp = null;<\/span><br \/><span style=\"color: #000000;\">Excel.Workbook xlWorkBook = null;<\/span><br \/><span style=\"color: #000000;\">Excel.WorkSheet xlWorkSheet = null;<\/span><br \/><span style=\"color: #000000;\">object misValue = Missing.Value;<\/span><\/p>\n<p><span style=\"color: #000000;\">\/\/ \uc560\ud50c\ub9ac\ucf00\uc774\uc158, \uc6cc\ud06c\ubd81, \uc6cc\ud06c\uc2dc\ud2b8 \uc0dd\uc131<\/span><br \/><span style=\"color: #000000;\">xlApp = new Excel.ApplicaionClass();<\/span><br \/><span style=\"color: #000000;\">xlWorkBook = xlApp.Workbooks.Add(misValue);<\/span><br \/><span style=\"color: #000000;\">xlWorkSheet = (Excel.Worksheet).xlWorkBook.WorkSheets.Add(misValue, misValue, misValue, misValue);<\/span><\/p>\n<p><span style=\"color: #000000;\">\/\/ \uc5d1\uc140 \uc2dc\ud2b8 \uc774\ub984\ubc14\uafb8\uae30<\/span><br \/><span style=\"color: #000000;\">xlWorkShee.Name = &#8220;\uc2dc\ud2b8 \uc774\ub984&#8221;;<\/span><\/p>\n<p><span style=\"color: #000000;\">\/\/ \uc6cc\ud06c\uc2dc\ud2b8\uc758 \uc140\uc5d0 \uac12\uc744 \uc785\ub825<\/span><br \/><span style=\"color: #000000;\">xlWorkSheet.Cells[1, 1] = &#8220;PID&#8221;;<\/span><br \/><span style=\"color: #000000;\">xlWorkSheet.Cells[1, 2] = &#8220;EntryWord&#8221;;<\/span><\/p>\n<p><span style=\"color: #000000;\">\/\/ \uc785\ub825 \ud6c4 \uc6cc\ud06c\ubd81\uc744 \uc800\uc7a5<\/span><br \/><span style=\"color: #000000;\">xlWorkBook.SaveAs(&#8220;\uacbd\ub85c&#8221;, Excel.XIFileFormat.xlWorkBookNormal, misValue, misValue, misValue, misValue, Microsoft.Interop.Excel.XISaveAsAccessMode.xlExclusive, misValue, misValue, misValue, misValue, misValue);<\/span><br \/><span style=\"color: #000000;\">\/\/ \uc6cc\ud06c\ubd81\uc744 \ub2eb\ub294\ub2e4.<\/span><br \/><span style=\"color: #000000;\">xlWorkBook.Close(true, misValue, misValue);<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>C#\uc5d0\uc11c \uc5d1\uc140 \uc0ac\uc6a9\ud558\uae30 &nbsp; \ucc38\uace0)http:\/\/ hldec.net\/?page=3 &nbsp; \/\/ \uc120\uc5b8\ubb38using System.Reflection;using Excel = Microsoft.Office.Interop.Excel; \/\/ \uc560\ud50c\ub9ac\ucf00\uc774\uc158, \uc6cc\ud06c\ubd81, \uc6cc\ud06c\uc2dc\ud2b8 \ub4f1 \ubcc0\uc218 \ucd08\uae30\ud654Excel.Application xlApp = null;Excel.Workbook xlWorkBook = null;Excel.WorkSheet xlWorkSheet = null;object misValue = Missing.Value; \/\/ \uc560\ud50c\ub9ac\ucf00\uc774\uc158, \uc6cc\ud06c\ubd81, \uc6cc\ud06c\uc2dc\ud2b8 \uc0dd\uc131xlApp = new Excel.ApplicaionClass();xlWorkBook = xlApp.Workbooks.Add(misValue);xlWorkSheet = (Excel.Worksheet).xlWorkBook.WorkSheets.Add(misValue, misValue, misValue, misValue); \/\/ \uc5d1\uc140 \uc2dc\ud2b8 \uc774\ub984\ubc14\uafb8\uae30xlWorkShee.Name = &#8220;\uc2dc\ud2b8 \uc774\ub984&#8221;; \/\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-393","post","type-post","status-publish","format-standard","hentry","category-info"],"_links":{"self":[{"href":"https:\/\/www.ocworld.net\/index.php?rest_route=\/wp\/v2\/posts\/393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ocworld.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ocworld.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ocworld.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ocworld.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=393"}],"version-history":[{"count":1,"href":"https:\/\/www.ocworld.net\/index.php?rest_route=\/wp\/v2\/posts\/393\/revisions"}],"predecessor-version":[{"id":394,"href":"https:\/\/www.ocworld.net\/index.php?rest_route=\/wp\/v2\/posts\/393\/revisions\/394"}],"wp:attachment":[{"href":"https:\/\/www.ocworld.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ocworld.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ocworld.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}