# Workshop agenda in ODT and flat XML

Save one structured workshop agenda as editable ODT, inspectable FODT and a PDF review copy. Download all three formats and the generating C# source.

OpenDocument · C# walkthrough

Offer both packaged and flat XML representations of the same agenda for teams with different editing or exchange workflows.

[Build this report](#example-code)[Download ODT](/downloads/showcase/workflows/opendocument-workshop-agenda/example.odt)

**Start with**

Workshop timings, activities, outputs and preparation notes

**Generate**

ODT + PDF

[!\[Generated OpenDocument example: Workshop agenda in ODT and flat XML\](/downloads/showcase/workflows/opendocument-workshop-agenda/preview.webp)](/downloads/showcase/workflows/opendocument-workshop-agenda/preview.png)

Page 1 · Generated by the example below

## How it works

1. ### Build the agenda
  
  Use headings, styled time labels and preparation notes around a concrete workshop outcome.
2. ### Save the packaged document
  
  Write example.odt for normal OpenDocument editing and sharing.
3. ### Export flat XML
  
  Call SaveFlatXml to write example.fodt from the same document model.

## The C# source

The example below shows the document API and layout used for this report. Follow the OpenDocument guide for package setup in your own project.

```csharp
using OfficeIMO.OpenDocument;

namespace OfficeIMO.Examples.Showcase.Workflows;

/// <summary>Saves the same workshop agenda as packaged ODT and flat XML FODT for inspection and exchange.</summary>
internal static class OpenWorkshopAgenda {
    internal static void Create(string folder) {
        OdtDocument document = OdtDocument.Create();
        var title = document.AddHeading("Service design workshop", 1);
        title.FontFamily = "Carlito"; title.FontSize = OdfLength.Parse("26pt"); title.Color = OdfColor.Parse("#17365d");
        document.AddParagraph("90 minutes / six participants / facilitator: Jordan Lee");
        document.AddHeading("Outcome", 2);
        document.AddParagraph("Agree one request journey, identify the unresolved decisions and leave with named owners for the next actions.");
        document.AddHeading("Agenda", 2);
        Activity("00–10", "Frame the problem", "Agree the outcome and boundaries.");
        Activity("10–30", "Map the current journey", "Make handoffs and waiting points visible.");
        Activity("30–55", "Design the next journey", "Name roles and decision points.");
        Activity("55–75", "Test two scenarios", "Record exceptions and open questions.");
        Activity("75–90", "Commit next actions", "Agree owners, dates and a review point.");
        document.AddHeading("Preparation", 2);
        document.AddParagraph("Bring two anonymized requests: one routine case and one that needed several handoffs. Read the current service description before the session.");
        document.AddHeading("Capture before closing", 2);
        var close = document.AddParagraph();
        close.AddRun("Decision / owner / due date").Bold = true;
        close.AddRun(" — record all three for every action. Share the agenda and the resulting notes with participants.");
        foreach (var paragraph in document.Paragraphs) {
            paragraph.FontFamily = "Carlito";
            paragraph.FontSize = OdfLength.Parse(paragraph.HeadingLevel == 1 ? "26pt" : paragraph.IsHeading ? "15pt" : "11pt");
            paragraph.SpaceAbove = OdfLength.Parse(paragraph.IsHeading ? "12pt" : "0pt");
            paragraph.SpaceBelow = OdfLength.Parse("8pt");
            if (paragraph.IsHeading) paragraph.Color = OdfColor.Parse("#17365d");
        }
        document.Save(Path.Combine(folder, "example.odt"));
        document.SaveFlatXml(Path.Combine(folder, "example.fodt"));

        void Activity(string time, string title, string outcome) {
            var paragraph = document.AddParagraph();
            var label = paragraph.AddRun(time + "  " + title + ". ");
            label.Bold = true;
            label.Color = OdfColor.Parse("#2563eb");
            paragraph.AddRun(outcome);
        }
    }
}
```

[Open the C# source file](/downloads/showcase/workflows/opendocument-workshop-agenda/OpenWorkshopAgenda.cs.txt)

## API used in this example

- [`OdfLength`](/api/open-document/officeimo-opendocument-odflength/)
- [`OdfColor`](/api/open-document/officeimo-opendocument-odfcolor/)
- [`OdtDocument`](/api/open-document/officeimo-opendocument-odtdocument/)

## Use this in your project

Replace the timings and activities with your session plan. Use the FODT download when a single XML file is useful for inspection or controlled exchange.

The [OpenDocument guide](/docs/open-document/) explains package setup and related document APIs.

## Documents and scope

### What the preview shows

The linked C# example generates this file. The runner reopens the ODT and exports a PDF review copy. Each PDF page is rendered for review.

### What to keep in mind

The sample demonstrates both serializations. It does not claim that text diffs are free of generated style changes or that all editors render them identically.

[OpenDocument API reference](/api/open-document/) · [Artifact hashes and provenance](/downloads/showcase/manifest.json)

## Continue with another example

- [OpenDocument**Editable OpenDocument proposal**](/showcase/opendocument-service-proposal/)
- [PDF**A two-page workshop pack**](/showcase/pdf-workshop-pack/)

<!-- PowerForge markdown artifact sha256:23DA3403C2DFEDB97941530673B74B1F3DD1AD5CFBC32F17F67E7170C3DCB649 -->
