Midoliy.Office.Interop.Excel
0.0.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Midoliy.Office.Interop.Excel --version 0.0.2
NuGet\Install-Package Midoliy.Office.Interop.Excel -Version 0.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Midoliy.Office.Interop.Excel" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Midoliy.Office.Interop.Excel --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Midoliy.Office.Interop.Excel, 0.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Midoliy.Office.Interop.Excel as a Cake Addin #addin nuget:?package=Midoliy.Office.Interop.Excel&version=0.0.2 // Install Midoliy.Office.Interop.Excel as a Cake Tool #tool nuget:?package=Midoliy.Office.Interop.Excel&version=0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
前提条件
Excel
がインストールされていること.NET Framework
がターゲットであること
使い方
- 空のワークブックを作成して操作する方法
using Midoliy.Office.Interop;
class Program
{
static void Main(string[] args)
{
// 空のワークブックを作成する
// → app は必ず using で囲む必要あり
// → book や sheet なども IDisposable が実装されているが, 解放処理は不要
// = 内部で自動解放するため
using (var app = Excel.BlankWorkbook())
{
// Excel Applicationインスタンスの中にある1つ目のワークブックを取得する
// → indexが 1 始まりなので注意すること(VBAの仕様に合わせているため)
var book = app[1];
// ワークブック内の1つ目のシートを取得する
var sheet = book[1];
// [row, colum] でセルにアクセス可能
// → indexが 1 始まりなので注意すること(VBAの仕様に合わせているため)
sheet[1, 1].Value = 10; // A1 に 10 を代入
// Excelのアドレス記法でアクセス可能
sheet["B1"].Value = "Sample text"; // B1 に "Sample text" を代入
// 範囲ベースでのアクセスも可能
sheet["C1", "D3"].Value = 3.14; // C1:D3 の範囲に 3.14 を代入
// 最後に保存しなければならないことに注意
book.SaveAs("./Sample.xlsx");
// Excel Application の表示状態を Visible にすれば, 保存しなくても良くなる・
// app.Visibility = AppVisibility.Visible;
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 is compatible. net46 was computed. net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.0
- Microsoft.Office.Interop.Excel (>= 15.0.4795.1000)
-
.NETFramework 4.5.2
- Microsoft.Office.Interop.Excel (>= 15.0.4795.1000)
-
.NETFramework 4.6.1
- Microsoft.Office.Interop.Excel (>= 15.0.4795.1000)
-
.NETFramework 4.7.2
- Microsoft.Office.Interop.Excel (>= 15.0.4795.1000)
-
.NETFramework 4.8
- Microsoft.Office.Interop.Excel (>= 15.0.4795.1000)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Midoliy.Office.Interop.Excel:
Package | Downloads |
---|---|
Fxcel
Excel COM operation tools for F# |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.0.6.42 | 984 | 8/9/2021 |
0.0.6.41 | 350 | 8/9/2021 |
0.0.6.40 | 369 | 8/9/2021 |
0.0.6.39 | 341 | 8/8/2021 |
0.0.6.38 | 369 | 8/8/2021 |
0.0.6.37 | 364 | 8/8/2021 |
0.0.6.36 | 348 | 8/8/2021 |
0.0.6.35 | 350 | 8/8/2021 |
0.0.6.34 | 370 | 8/8/2021 |
0.0.6.33 | 359 | 8/8/2021 |
0.0.6.32 | 327 | 8/8/2021 |
0.0.6.31 | 341 | 8/8/2021 |
0.0.6.30 | 533 | 7/29/2021 |
0.0.6.29 | 434 | 7/29/2021 |
0.0.6.28 | 606 | 7/29/2021 |
0.0.6.27 | 373 | 7/29/2021 |
0.0.6.26 | 380 | 7/29/2021 |
0.0.6.25 | 474 | 7/29/2021 |
0.0.6.24 | 406 | 7/29/2021 |
0.0.6.23 | 394 | 7/29/2021 |
0.0.6.22 | 428 | 7/29/2021 |
0.0.6.21 | 639 | 7/28/2021 |
0.0.6.20 | 495 | 7/28/2021 |
0.0.6.19 | 398 | 7/28/2021 |
0.0.6.18 | 422 | 7/28/2021 |
0.0.6.17 | 530 | 7/28/2021 |
0.0.6.16 | 497 | 7/27/2021 |
0.0.6.15 | 417 | 7/27/2021 |
0.0.6.14 | 849 | 6/19/2021 |
0.0.6.13 | 337 | 6/19/2021 |
0.0.6.12 | 333 | 6/17/2021 |
0.0.6.11 | 374 | 6/16/2021 |
0.0.6.10 | 387 | 6/16/2021 |
0.0.6.9 | 396 | 6/16/2021 |
0.0.6.8 | 488 | 6/15/2021 |
0.0.6.7 | 537 | 6/13/2021 |
0.0.6.6 | 442 | 6/13/2021 |
0.0.6.5 | 358 | 6/13/2021 |
0.0.6.4 | 335 | 6/13/2021 |
0.0.6.3 | 357 | 6/13/2021 |
0.0.6.2 | 354 | 6/13/2021 |
0.0.6.1 | 367 | 6/13/2021 |
0.0.6 | 350 | 6/12/2021 |
0.0.5.6 | 380 | 5/18/2021 |
0.0.5.5 | 551 | 11/19/2020 |
0.0.5.4 | 515 | 9/28/2020 |
0.0.5.3 | 503 | 9/25/2020 |
0.0.5.2 | 556 | 9/25/2020 |
0.0.5.1 | 532 | 5/10/2020 |
0.0.5 | 523 | 5/10/2020 |
0.0.4 | 476 | 4/24/2020 |
0.0.3 | 519 | 4/20/2020 |
0.0.2 | 498 | 4/19/2020 |
0.0.1 | 499 | 4/19/2020 |