Someone supplied me with a macro that would do the job. It is:
Code: Select all
Sub Main
Dim Doc, Sheet, Cell as Object
Dim PropVals(0) as New com.sun.star.beans.PropertyValue
Dim FileName as String
Doc = ThisComponent 'Get the current document.
Sheet = Doc.Sheets(0) 'Picks the leftmost sheet
Cell = Sheet.getCellByPosition(1,0) 'Assigns cell B1 as the target for the Date
Cell.String = Date
FileName = convertToURL("C:\Users\XXXXX\Documents\Temp.pdf")
PropVals(0).Name = "FilterName"
PropVals(0).Value = "calc_pdf_Export"
Doc.storeToURL(FileName, PropVals()
End SubP.S., The same thing happens if I manually export it as a pdf.
P.P.S., The ods file is available at http://tinyurl.com/odsfile. (You will have to change the folder name from XXXXX in the macro.) The pdf file is at http://tinyurl.com/2cknlm2. (tinyurl/pdffile was not available.)
P.P.P.S., I'm running OOCalc version 3.2.0 under Windows Vista.