HotXLS Docs

Standalone XLSB OLE DB metadata

Represented connection metadata

Version 2.384.366 imports and writes a finite standalone OLE DB connection profile by way of the ordinary Connections collection, covering public metadata edits, binary/XML conversion and normal file or stream reopen

The represented connection has Kind=xlckOleDb, wire TypeCode=5 and exactly one database-property owner; existing Name, Description, ConnectionString, CommandText, CommandType, credential selectors and refresh-policy metadata keep their public meanings

Command selectors 0, 2, 3 and 4 are admitted; selector 0 demands empty command text and writes no active command payload

Use the ordinary SaveAs overload with xlsxExcelBinaryWorkbook for binary output and xlsxOpenXMLWorkbook for the represented XML bridge

Metadata discovery also works during a metadata-only or selected-sheet binary open, and owned connection metadata survives source-stream destruction ahead of later saving

Source identity and checked output

The actual authoritative connection part, XML namespace, unique internal workbook relationship, explicit content type and the absence of child relationships must qualify before binary export

Ordinary XML import remains tolerant of broader source metadata, but a reconstructed typed projection cannot grant binary qualification to an unsupported original raw source, even when the typed collection is empty

A raw-preserving XML save retains that original source decision; a source-free save can create a genuinely new canonical source part, which is separately checked as the newly accepted baseline

Deleting every connection from a valid source writes no orphaned connection part, relationship or content-type declaration

Use GetConversionReport(xlsConversionExcelBinaryWorkbook) for preview or SaveAsChecked for checked output; unsupported active metadata refuses output while keeping the model and the existing seekable sink bytes, extent and cursor

Finite wire and resource profile

The finite limits are 1024 connections, 1 MiB of logical binary connection metadata, 8 MiB of XML metadata staging, 65535 UTF-16 code units per database string, plus the checked 255-character name and descriptive metadata profile

These limits describe connection preparation and promise no whole-workbook peak-memory ceiling

Duplicate identities or owners, unsupported active children, incomplete records, unknown command selectors, aliases and child relationships stay refusal boundaries

Documented ignored binary fields normalise to canonical values, including an ignored reconnection selector when onlyUseConnectionFile is true; invalid active selectors still refuse

The native UID profile retains the complete observed alternate-content version envelope and GUID immediately before its connection record; other envelope versions and positions are not claimed as supported

Native acceptance and remaining work

Actual Excel metadata acceptance covers imported and edited binary output and its public XML bridge via normal Open, SaveAs and normal reopen, with command selector 2 and onlyUseConnectionFile=False

The remaining command selectors have library and independent wire qualification; no query, refresh or macro execution forms part of this profile

The genuine native XLSX source retains an independent workbook-extension refusal boundary; positive XML-to-binary evidence uses supported public/generated XML and does not promise conversion of every native XLSX package that carries a connection

A bounded standalone SQL or Table QueryTable graph can accompany Kind=xlckOleDb and TypeCode=5 with CommandType=2 or CommandType=3; this graph requirement does not do away with the other separately represented standalone connection selectors

Server-command metadata keeps the standalone database codec's existing represented limits and is not run during transport

Standalone ODBC SQL metadata and the existing Web QueryTable graph keep their own profiles; text connections, non-SQL or table-bound QueryTables, Pivot/model connections, parameters, incompatible property families, unknown active extensions and database execution keep their separate boundaries

See XLSB values and styles for the surrounding package, lazy-loading and transactional output contracts