Book a Demo

Author Topic: DocumentGenerator strips header / footer  (Read 9571 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
DocumentGenerator strips header / footer
« on: March 19, 2014, 03:07:06 am »
Hi all,

Something v strange going on here.
I'm generating RTF documents with DocumentGenerator in 1009 on Windows 7/64, and I'm not getting any headers or footers.
If I run the regular GUI RTF generation with the same template on the same element, the header and footer show up as expected.
I've checked the generated RTF files and indeed the one generated by DocumentGenerator lacks {\header} and {\footer}.
Code: [Select]
DocumentGenerator docGen = repository.CreateDocumentGenerator();
docGen.NewDocument("");
docGen.DocumentElement(repository, element, "TestTestTest");
docGen.SaveDocument(fileName, DocumentType.dtRTF);

Any ideas?

Cheers,


/Uffe
My theories are always correct, just apply them to the right reality.