Excel.Application excel;
Excel.Workbook wb;
Excel.Worksheet ws = null;
excel = new Excel.Application();
wb = excel.Workbooks.Add(true);
ÀÌ·±½ÄÀ¸·Î ÃʱâÈÇÏ¿© excel ÆÄÀÏ¿¡ µ¥ÀÌÅ͸¦ ¾²°íÀÖ½À´Ï´Ù.
worksheet1 worksheet2 worksheet3 worksheet4...
ÀÌ·¸°Ô ÂßÂß ¿öÅ©½ÃÆ®º°·Î ³»¿ëÀ» ¾²´Âµ¥..
wb = null;
ws = null;
excel = null;
excel = new Excel.Application();
wb = excel.Workbooks.Add(true);
ÃʱâÈ ÇØÁÖ¾î ÀÛ¾÷À» ÇÏ¸é ³ª¸ÓÁö worksheetµéÀÌ »ç¶óÁöÁú ¾Ê½À´Ï´Ù.
´Ù¸¥ ÆÄÀÏ·Î ÀúÀåÀ» Çϴµ¥µÎ¿ä..
worksheet1, worsheet2 ¿¡¸¸ Data¸¦ ¾´´Ù°í °¡Á¤Çϸé,
Àú µÎ°³ÀÇ ¿öÅ©½ÃÆ®¸¸ ÀÖ¾î¾ßÇϴµ¥ ÀÌÀü¿¡ ÀÛ¾÷Çß´ø 3, 4°¡ ºÙ¾î¼
ÀúÀåÀÌ µË´Ï´Ù....
¾î¶»°Ô Á¶Ã븦 ÃëÇؾßÇÒÁö µµ¿òÀ» ¾òÀ» ¼ö ÀÖÀ»±î¿ä | |
|
±×·¯´Ï±î ½ÃÆ® -> ¿öÅ©ºÏ -> ¿¢¼¿ ¼ø¼´ë·Î¿ä..
´õºÒ¾î disposeµµ °°ÀÌ ÇÑ°Í °°³×¿ä..
ws=null
wb=null
excel=null
ws.dispose
wb.dispose
excel.dispose
¹¹°¡¹®Á¦ÀÎÁö ¸ð¸£°Ù³×¿ä ¤Ì¤Ì