Maak, bewerk, inspecteer, bereken en exporteer Excel-workbooks rechtstreeks vanuit Delphi- of C++Builder-code. HotXLS is een native Object Pascal-spreadsheetbibliotheek met broncode voor XLS- en XLSX-workflows, ontworpen voor desktoptools, batchtaken, rapportagesystemen en server-side documentgeneratie zonder Microsoft Excel-automatisering.
Dit artikel is bedoeld voor teams generating workbooks that carry reviewer notes, issue links, supporting evidence, or guided navigation. Het behandelt comments, hyperlinks, and review workflows als productiegerichte documentengineering, niet als een losse componentaanroep.
Het praktische risico is dat review information becomes unreliable when comments, authorship, hyperlink targets, hidden sheets, and external URLs are not validated. Daarom heeft de workflow een geschreven contract, observeerbare diagnose en representatieve regressiebestanden nodig.
Architectuurbeslissingen
Treat review data as structured workbook content. comment author, visibility, formatting, and whether generated notes are editable / internal sheet links, external URLs, file links, mail links, and disabled-link policy
- comment author, visibility, formatting, and whether generated notes are editable
- internal sheet links, external URLs, file links, mail links, and disabled-link policy
- review status vocabulary and where status is stored
- link validation, warning display, and blocked-domain handling
Implementatiepad
Validate links and comments before delivery. The order below keeps the workflow reviewable for Delphi and C++Builder teams.
- write comments from a structured review model rather than free-form strings
- validate hyperlink targets before saving the workbook
- connect internal links to stable sheets and named ranges where possible
- generate a review summary sheet when comments drive workflow decisions
- record link warnings and comment counts for support
Validatiebewijs
Review evidence for operators and auditors. Keep these fields with the output or support record.
- comment count, author list, target cells, visibility state, and generated-note source
- hyperlink type, target, validation result, and blocked-domain reason
- review status values and summary-sheet totals
- warnings for links pointing to hidden, missing, or renamed sheets
Links and notes shape user decisions
Comments and hyperlinks guide users through the workbook. They should have clear authorship, stable cell references, validated targets, and a policy for internal sheet navigation versus external URLs.
Implementatienotities voor productie
Behandel HotXLS: comments, hyperlinks, and review workflows in Delphi als een expliciet servicecontract rond de HotXLS-aanroepen, met gescheiden invoercontrole, werkmapopbouw, uitvoercontrole en supportbewijs
- Leg gegevensbron, celbereiken en uitvoerformaat vast voordat de werkmap wordt gemaakt
- Log rijenaantal, bladen, waarschuwingen en uitvoerpad in controleerbaar supportbewijs
- Plaats applicatiespecifieke details in testbare helpers in plaats van UI-events
- Open of inspecteer het opgeslagen bestand voordat het naar een ander systeem of klant gaat
Foutscenario's om te oefenen
- Een geslaagde SaveAs bewijst niet dat het zakelijke contract klopt
- Lettertypen, rechten en regionale instellingen kunnen verschillen tussen server en ontwikkelmachine
- Logs mogen geen wachtwoorden, klantgegevens of interne links onthullen
Uitgebreid Delphi-voorbeeld
Het volgende Delphi-voorbeeld toont een praktische servicegrens voor dit onderwerp en houdt beleid, logging en validatie testbaar gescheiden
procedure BuildReviewWorkbook(const SourceFile, OutputFile: string);
var
Wb: TXLSXWorkbook;
Review: TReviewInventory;
begin
RequireFileExists(SourceFile);
Wb := TXLSXWorkbook.Create;
try
Wb.Open(SourceFile);
Review := ScanCommentsAndHyperlinks(Wb);
FlagUnsafeExternalTargets(Review);
AddReviewQueueSheet(Wb, Review);
AddReviewerInstructions(Wb, [
'Confirm unresolved comments',
'Verify external hyperlinks',
'Approve mailto and file links before delivery'
]);
AssertNoBlockedHyperlinks(Review);
WriteReviewAudit(Wb, Review);
if Wb.SaveAs(OutputFile) <> 1 then
RaiseWorkbookSaveError(OutputFile);
finally
Wb.Free;
end;
end;
Productiechecklist
- Run the workflow on an empty workbook, a normal customer workbook, and a worst-case workbook
- Open the output with the target spreadsheet application or downstream importer
- Log product version, template version, profile, row count, output path, elapsed time, and warning count
- Keep passwords, temporary files, customer data, and support bundles under explicit retention rules
- Add regression workbooks when a customer file exposes a new edge case