I've been playing around with the OO SDK to create documents on the fly by using XReplaceable and XReplaceDescriptor to fill in document variables with dynamic data (eg. @name@ becomes "Jane Doe") and then converting the documents to flattened PDFs for archiving. I'm wondering if it's possible to create a variable number of entire sections of repeatable data. For example, if I have a half page chunk that represents all the data associated with a person, can I create 1 to N repetitions of those half page segments based on variable data that I extract from a back-end system? For example, I could have a document that looks like this:
First Name: Bob
Last Name: Smith
Phone: 555-1212
... and I could have another document that looks like this:
First Name: Bob
Last Name: Smith
Phone: 555-1212
--- --- --- --- --- --- --- ---
First Name: Jane
Last Name: Smith
Phone: 555-1313
--- --- --- --- --- --- --- ---
First Name: Jim
Last Name: Smith
Phone:
--- --- --- --- --- --- --- ---
First Name: Jessy
Last Name: Smith
Phone: 555-1414
Using the SDK to create documents with variable data lists
Writing a book, Automating Document Production - Discuss your special needs here
Jump to
- Getting started
- ↳ Survival guide
- ↳ Beginners
- ↳ Getting Started Guide for 4.x
- ↳ Getting Started Guide for 3.x
- ↳ Install, Setup and Troubleshooting
- ↳ Admin Guide
- ↳ MS Windows
- ↳ Linux
- ↳ Mac OSX
- ↳ LibreOffice
- ↳ Tablets
- ↳ Tutorials
- ↳ Writer
- ↳ Calc
- ↳ Base
- Applications
- ↳ Writer
- ↳ Writer Guide for 4.x
- ↳ Writer Guide for 3.x
- ↳ Writer Tutorials
- ↳ Templates
- ↳ Advanced Uses
- ↳ Calc
- ↳ Calc Guide for 4.x
- ↳ Calc Guide for 3.x
- ↳ Calc Functions
- ↳ Calc Tutorials
- ↳ Impress
- ↳ Impress Guide for 4.x
- ↳ Impress Guide for 3.x
- ↳ Draw
- ↳ Draw Guide for 4.x
- ↳ Draw Guide for 3.x
- ↳ Math
- ↳ Math Guide for 4.x
- ↳ Math Guide for 3.x
- ↳ Math Guide for 3.x
- ↳ Base
- ↳ Base Guide for 4.x
- ↳ Wiki
- ↳ Base Tutorials
- ↳ Tables & Queries
- ↳ Forms
- ↳ External Data Sources
- ↳ Reporting
- ↳ Database Examples
- Customizing and Extending
- ↳ Macros and UNO API
- ↳ Basic Guide
- ↳ Code Snippets
- ↳ Extension Repository
- ↳ Macro Repository
- ↳ External Programs
- ↳ Extensions
- ↳ Extensions page
- Community
- ↳ General Discussion
- ↳ Site Feedback
- ↳ Forum Governance
- ↳ User Experience (UX)
- ↳ Announcements
- Business
- ↳ Institutions & Educational
- ↳ Paid support
- ↳ Consultants Directory