Skip to content
#

microsoft-word

Here are 81 public repositories matching this topic...

BlueFrog76
BlueFrog76 commented Mar 6, 2020

I just updated to version 1.6.0.0 of Xceed.Document.NET and in attempting to insert an image as follows and documented elsewhere, I get an ObjectDisposedException: Package object was closed and disposed, so cannot carry out operations on this object or any stream opened on a part of this package.

Xceed.Document.NET.Image logoImg = doc.AddImage(imgFilePath); // Exception thrown here
Xceed.Docum

pkq
pkq commented Jul 3, 2018

This package is incredibly handy, thanks!

I don't know much about XML, but looking at an unzipped docx file, it appears that, if the footer exists, each section of document has a corresponding footer XML file (e.g., footer1.xml). Would it be possible to add a function that iterates through and extracts a document's footers (and headers, I suppose, but for the motivating use case, it's the fo

BanditSasquatch
BanditSasquatch commented Mar 11, 2020

Per the readme, the expected PowerShell call syntax is as follows:
powershell -File Diff-Word.ps1 oldfile.docx newfile.docx
However, the result is the opposite: Word treats newfile as the original and oldfile as the updated. This is because the Word command Document.Compare expects the syntax NewDocument.Compare(OldDocument, ...) but the PowerShell script uses `OldDocument.Compare(NewD

bug
NamelessHH
NamelessHH commented Apr 16, 2018

I keep getting this issue when I try to use this library

`

            var file = new FileInfo(Input);

            var reader = new StructuredStorageReader(file.FullName);

            var doc = new b2xtranslator.DocFileFormat.WordDocument(reader);

            var docx = WordprocessingDocument.Create(Output, b2xtranslator.OpenXmlLib.OpenXmlPackage.DocumentType.Documen
shanehoey
shanehoey commented Jan 28, 2018

using get-worddocument and get-wordinstance its possible to edit any property word has.

  1. write a page on how to use these by recording a macro on a document then implementing it

for example

$selection = (Get-WordDocument).application.selection
$selection.range.ListFormat.ApplyBulletDefault()
foreach ($o in $objects) {
    $selection.typetext($o)
    $Selection.TypeParagraph()

Improve this page

Add a description, image, and links to the microsoft-word topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the microsoft-word topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.