Author Topic: Document generation: deploy style sheet in MDG Technology  (Read 47 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1304
  • Karma: +95/-8
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Document generation: deploy style sheet in MDG Technology
« on: November 20, 2019, 05:56:52 am »
Hey guys,


I'm working on a document generation where I want a custom style sheet (based on Numbered Headings - Black).

However, I can't find how to correctly reference the style sheet in the DocumentGenerator.SetStyleSheetDocument() call when the style sheet is deployed in a technology.

In the Resources window, the style sheet appears in a two-tier structure
Code: [Select]
Technology_name ("Technology" field in MDG creation wizard)
    Technology_ID ("ID" field in the wizard)
        Template_name

But referring to the template in each of the following ways fails (silently):
    SetStyleSheetDocument("Template_name")
    SetStyleSheetDocument("Technology_ID::Template_name")
    SetStyleSheetDocument("Technology_name::Template_name")
    SetStyleSheetDocument("Technology_name::Technology_ID::Template_name")

What is the correct way?


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