RFBCodeWorks.DatabaseObjects.MsOffice 1.0.1

dotnet add package RFBCodeWorks.DatabaseObjects.MsOffice --version 1.0.1
NuGet\Install-Package RFBCodeWorks.DatabaseObjects.MsOffice -Version 1.0.1
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="RFBCodeWorks.DatabaseObjects.MsOffice" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RFBCodeWorks.DatabaseObjects.MsOffice --version 1.0.1
#r "nuget: RFBCodeWorks.DatabaseObjects.MsOffice, 1.0.1"
#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 RFBCodeWorks.DatabaseObjects.MsOffice as a Cake Addin
#addin nuget:?package=RFBCodeWorks.DatabaseObjects.MsOffice&version=1.0.1

// Install RFBCodeWorks.DatabaseObjects.MsOffice as a Cake Tool
#tool nuget:?package=RFBCodeWorks.DatabaseObjects.MsOffice&version=1.0.1

RFBCodeworks.DatabaseObjects.MsOffice

About

This library extends the RFBCodeworks.DatabaseObjects library with a database to represent Microsoft Access, and Microsoft Excel.

These objects use an OLEDBCommand to communicate to the files. Since this requires an OLEDB connection, this library is compiled only for x86/x64.

MSAccessDataBase

  • Represents an MS Access Database.

Working with Excel

ExcelWorkbook

  • Represents an Excel workbook document.
  • Derived from RFBCodeworks.DatabaseObjects.AbstractDatabase
  • Has and methods properties specific to interacting with an excel workbook.

ExcelWorkbook.Worksheet

  • Represents a 'Worksheet' within the specified workbook.
  • Derived from RFBCodeworks.DatabaseObjects.DatabaseTable
  • Various methods have been overridden since they are not compatible with excel workbooks (Primarily the 'INSERT') methods

ExcelWorkbook.PrimaryKeyWorksheet

  • Represents a 'Worksheet' whose table is meant to act as a table with a primary key (such as an Auto-Number column)
  • Derived from ExcelWorkbook.Worksheet
  • Implements RFBCodeworks.DatabaseObjects.IPrimaryKeyTable

Troubleshooting

  • Driver Missing Error
    • 32-bit computers -- Install the appropriate driver. This can be found from the 32-bit Microsoft Access Runtime.
    • 64-bit computers
      • If the computer has any 32-bit Microsoft office products installed, then the calling application must be compiled and running in 32-bit mode. Unfortunately, this is due to the required backwards compatibility that MS implements, so nothing can be done on my end about this (as far as I know). Your options are basically uninstall all 32-bit Microsoft Office products/upgrade to 64-bit office, or build your application in 32-bit mode. If the computer does not have the driver installed at all (or has the 64-bit driver installed but 32-bit Office is installed), then you will have to download the 32-bit driver.

      • If the computer does not have any 32-bit microsoft office features installed, then you are missing the 64-bit driver.

Required Libraries

  • SqlKata
  • System.Data.OleDb
  • RFBCodeworks.DatabaseObjects
  • RFBCodeworks.SqlKata.MSOfficeCompilers
  • RFBCodeworks.SqlKata.Extensions
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net6.0-windows7.0 is compatible.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net8.0-windows7.0 is compatible. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 291 2/1/2024
1.0.0.9 323 1/20/2024
1.0.0.8 324 1/20/2024
1.0.0.7 316 1/20/2024
1.0.0.6 316 9/26/2023
1.0.0.4 486 1/30/2023

Updated NuGet packages. Add .targets file to nuget package
Fixes for Connection Strings and better 32-bit / 64-bit support.
JET now reports as obsolete when using 64-bit assemblies.