Skip to content

insertFileFromBase64 does not preserve Textbox Content (Title Missing) #6601

@mtalhadev218

Description

@mtalhadev218

insertFileFromBase64 does not preserve Textbox content (Title missing)

When inserting a Word document using insertFileFromBase64, textbox content is not preserved. In my case, a textbox used as a document title in the source file does not appear after insertion.

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: PC Desktop (also reproducible on Mac & Web)
  • Host [Excel, Word, PowerPoint, etc.]: Word
  • Office version number: Latest (Microsoft 365)
  • Operating System: Windows 10 / Windows 11
  • Browser (if using Office on the web): Chrome

Expected behavior

Textbox content (used as a title in the document) should be preserved and visible after inserting the document using insertFileFromBase64.

Current behavior

Textbox content is missing after insertion.
The rest of the document content (paragraphs, text) is inserted correctly, but the textbox and its content do not appear at all.

Steps to reproduce

  1. Create a Word document with a textbox (Insert → Text Box) and add text inside it (e.g., a title)
  2. Convert the document to base64
  3. Insert it using insertFileFromBase64

Provide additional details

  1. No errors are thrown during insertion
  2. The textbox is part of the original .docx file and visible when opened normally in Word
  3. Issue occurs consistently across multiple documents with textboxes

Context

I am building a Word Add-in that inserts template documents dynamically.
Textboxes are used in templates for titles and layout, but since they are not preserved, the document structure breaks and important content is lost.

Metadata

Metadata

Labels

Area: WordIssue related to Word add-insNeeds: attention 👋Waiting on Microsoft to provide feedback

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions