Using ProRock#
ProRock keeps your uses short: usually one unit for the job (Calcite for Excel, your generated unit for XML or SOAP).
Add the others only when you need what they give.
The units below and the generated ProRock.Xmlite.Schema.* are the ones to use. Every other unit in Source is internal:
usable, but not designed to be used directly.
Excel#
ProRock.Calcite#
Excel workbooks (.xlsx): open, change and save with nothing lost.
TWorkbook:Open,Save,SaveAsbook.Worksheets['Invoice'], the cells assheet['B12'].Valuesheet.Rows['12:14'].InsertandDelete: formulas, charts and tables move with thembook.ErrorwhenOpenorSaveanswersFalse,book.Issuesfor changes Calcite refused
More: Excel (Calcite).
ProRock.Calcite.Data#
A TDataSet to a sheet, with formats from the fields, columns fitted and the header frozen.
ExportDataSet(Query, Sheet)
More: A DataSet to a sheet.
ProRock.Office.Ooxml#
Any Office file (.xlsx, .docx, .pptx) as a package: parts read on first use, untouched bytes kept, nothing lost on save.
TPackageOoxml:Open,Save,SaveAsProperties: the document's Title, Subject, Creator, Keywords...Part<T>to read a part,EditPart<T>to change it
More: the Office document properties sample.
SOAP#
ProRock.Soapite#
SOAP clients: the units you generate from a WSDL build on it.
TSoapiteClient, the base of every generated client:Endpoint,SoapVersion,Transport- every operation in two forms:
TryCheckVatreturnsFalseand aTSoapiteError,CheckVatraises OnRequestandOnResponseto log the XML
More: SOAP (Soapite).
ProRock.Http#
The HTTP transport for SOAP clients.
THttpTransportNative: timeouts, authentication, certificatesTHttpTransportto write your own
More: Transport.
XML#
ProRock.Xmlite#
XML to objects and back, through the classes generated from your XSD.
FromXmlto read,ToXmlto writeTXmlite, the base of every generated class- content the schema does not describe, kept and written back
More: XML (Xmlite).
The core#
ProRock.Basite#
Plain Delphi objects described by their metadata: who owns what, which values are present.
TBasiteandTBasiteList<T>, the base of every object and list- attributes such as
[TRequired]and[TChoice('Delivery')]for classes you write yourself
More: The core (Basite) and Hand-written classes.
Generated units#
Units you generate with ProRocket Lite:
ProRock.Xmlite.Schema.<Name>from an XSDProRock.Soapite.<Service>from a WSDL
More: Generated code.
ProRock comes with generated units of its own in Source, such as ProRock.Xmlite.Schema.Envelope for SOAP and
ProRock.Xmlite.Schema.Ooxml.Sml for Excel. Calcite and Soapite use them; you rarely name them.