Skip to content

Inserting image suggestion. #106

@EricNgo1972

Description

@EricNgo1972

MiniWord inserts images like:

ReportData["Photo"] = new MiniWordPicture() { Path="photo.jpg", Width = 200, Height = 150 };

But this gives you no control over styling in the .docx template — which breaks WYSIWYG template authoring.

Instead of using a text placeholder like {{Photo}}, it is better to:

  • Add an actual image placeholder (invisible dummy image) in the Word template

  • Let the C# code replace that image in-place, preserving its size and formatting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions