Questions tagged [openxml-powertools]
37 questions
0
votes
1 answer
OpenXML - replace a string by a table
I want to replace a string by a table, I can't make it work.
Here is the code for replacing a string:
var newDoc = new FileInfo(OpenXml_docx);
File.Copy(sourceDoc.FullName, newDoc.FullName);
using (WordprocessingDocument wDoc =…

ASfdsa33
- 97
- 1
- 9
0
votes
1 answer
C#:docx generated from html by open xml power tools throw pre release 2007
I'm writing code that get the content of Docx file as HTML by using open XML power tools and now I want to convert it back to another docx file. the step that gets contents as HTML works fine but when I generate the docx file from that HTML the file…

Rouzbeh Zarandi
- 1,047
- 2
- 16
- 34
0
votes
1 answer
Is the a way to have 2 paragraphs side by side in OpenXml C#?
I am trying to create an OpenXml word document that looks as follows:
2.1.1 This is a paragraph
2.1.2 This is also a paragraph
2.1.2.1 This paragraph relates to 2.1.2
The initial plan is to have the number in its own paragraph, and have the text in…
0
votes
1 answer
Where is the definition of MetricsGetter.GetTextWidth
I am trying to use the Open-XML-Powertools.
I have downloaded the current version from GitHub and I am copying a lot of code from the sample file
Open-Xml-PowerTools-vNext\OpenXmlPowerTools\WmlToHtmlConverter.cs
However, in application I am actually…

Phil Jollans
- 3,605
- 2
- 37
- 50
0
votes
1 answer
Convert Doc to HTML in .NET Core without OpenXmlPowerTools
I am converting .NET 4.5 project to .NET Core 2.2 and I am trying to find an alternative to OpenXmlPowerTools which is not supporting .NET Core yet.
I tried Net-Core-DocX-HTML-To-PDF-Converter from…

Rajesh
- 17
- 1
- 7
0
votes
0 answers
Put HTML properly in Powerpoint Presentation
I am using Openxml SDK, c# to generate Presentation and working so far with plain text, what I am trying now is HTML (entered in a text box) into Presentation. I looked through OpenXML PowerTools but it does not contain converting HTML to…

hungryjackers
- 71
- 2
- 9
-2
votes
1 answer
Check if word exists in docx file
I have this docx file loaded in my code:
byte[] documentBytes = File.ReadAllBytes("C:\\mydocument.docx");
This document contains the word "foo" in either the main body, header or footer, what is the easiest way to check for the existence of the…

yesman
- 7,165
- 15
- 52
- 117