.


:




:

































 

 

 

 


C# Microsoft Office. Excel.

C# Microsoft Office. Excel.

, C# Microsoft Excel. COM Excel. "" ->" ":

, COM Microsoft Excel Object Library, "":


Excel , :

using Excel = Microsoft.Office.Interop.Excel;

"" . :

using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Excel = Microsoft.Office.Interop.Excel;   namespace WindowsFormsApplication1 { public partial class Form1: Form { public Form1() { InitializeComponent(); }   private void btnStart_Click(object sender, EventArgs e) { Excel.Application excel = new Excel.Application(); excel.Visible = true; excel.SheetsInNewWorkbook = 7; excel.Workbooks.Add(Type.Missing); } } }

, :

Excel :

 

C# Microsoft Office. Excel.

:

private void btnStart_Click(object sender, EventArgs e) { Excel.Application excel = new Excel.Application(); // COM- Excel excel.Visible = true; // excel.SheetsInNewWorkbook = 7;// excel.Workbooks.Add(Type.Missing); // Excel.Workbook workbook = excel.Workbooks[1]; // Excel.Worksheet sheet=(Excel.Worksheet)workbook.Worksheets.get_Item(1);//   // 1 10 for (int i = 1; i <= 10; i++) { sheet.Cells[i, 1] = i; }   // sheet.Cells.get_Range("A1","A10").Font.Bold = true;; }

*:

, . :

// sheet.Cells.get_Range("A1", "B10").Borders.LineStyle = Excel.XlLineStyle.xlContinuous; sheet.Cells.get_Range("A1", "B10").Borders.Weight = Excel.XlBorderWeight.xlThick;

:*

C# Microsoft Office. Word C#

Microsoft Visual Studio 2010 Microsoft Office C#. Microsoft Word. , Word:

Word, C#:

, :

Word , , ".exe", ".doc":

, , "Hello, world!":



<== | ==>
 | The little Gray Wolfy. The winter story, natalia malykhina, 6 mins, 2016, norway.
:


: 2016-11-23; !; : 2606 |


:

:

, .
==> ...

1773 - | 1570 -


© 2015-2024 lektsii.org - -

: 0.009 .