Write data table to Excel

When writing data table to Excel, how to fill the preceding rows of data to match the rest of the data columns.
Invoice Examples3.pdf (62.9 KB)
PDFSplitExtract.xaml (17.2 KB)
How to I write to excel such that it would repeat the Invoice corresponding to the Service Order Items?
Desired output in Excel below.

Thanks!