ProRock#
🤟 ProRock
Excel workbooks and tamed XML in plain Delphi
Open, change, save: nothing lost. No DOM, no XPath, no namespace juggling.
An open-source Delphi library for Excel, XML and SOAP, and a free XSD and WSDL code generator.
- Pure Delphi source
- Nothing to install
- Win64 / Win32
- Delphi 10.3+
Excel workbooks in plain Delphi: no Excel, no COM
- Nothing lost on open, edit and save: charts, pivot tables, tables, images, notes, print setup, external links
- Excel opens it without "We found a problem with some content"
- A TDataSet in one call:
ExportDataSet(Query, Sheet), with formats from the fields, columns fitted and the header frozen - Half a million cells read in under a second
uses ProRock.Calcite;
var book := TWorkbook.Create;
try
if book.Open('Template.xlsx') then
begin
var sheet := book.Worksheets['Invoice'];
sheet.Rows['12:14'].Insert; // totals move down
sheet['B12'].Value := 'Consulting';
sheet['D12'].Value := 1200;
book.SaveAs('Invoice 1042.xlsx');
end;
finally
book.Free;
end;
A ready-to-use SOAP client, generated from the WSDL
- Every operation is a method, with typed requests, responses and faults
- SOAP 1.1 and 1.2
- Tested on real services: the EU VIES VAT check
- From a WSDL to a working call in 5 minutes
uses ProRock.Soapite.CheckVatService;
var service := TCheckVatService.Create(
'https://ec.europa.eu/taxation_customs/' +
'vies/services/checkVatService');
var request := TCheckVatE.Create;
try
request.CountryCode := 'IE';
request.VatNumber := '6388047V';
var response := service.CheckVat(request);
Writeln(response.Name, ' - valid: ', response.Valid);
response.Free;
finally
request.Free;
service.Free;
end;
Your XSD in, ready Delphi classes out
- Writes back what it read, even what the schema does not describe
- An e-invoice reads in 0.15 ms, 1,000 FHIR resources (3.2 MB) in 160 ms
- Proven on FHIR R4, e-invoices, ISO 20022 and Excel's own XML
- Schema changed? Regenerate: a clean diff, and the compiler shows the rest
uses ProRock.Xmlite, ProRock.Xmlite.Schema.Invoice2;
var invoice := TInvoiceE.Create; // UBL's <Invoice>
try
if invoice.FromXmlFile('invoice.xml') then
for var line in invoice.InvoiceLine do
Writeln(line.Item.Name.XmlValue);
invoice.ToXmlFile('copy.xml'); // all it read, back
finally
invoice.Free;
end;
It is young, and it grows with you
One developer builds it, and real use is what moves it forward. Try it on your own workbooks and schemas, and open an issue when something breaks or is missing: each one shapes the next release.
Hit the star on GitHub so other Delphi developers can find it, and if ProRock helps you, you can support the project.
I'm genuinely grateful for every star, issue and kind word! Thank you 🤟



