docx generated using OpenXml does not show form elements in MS Word
We use OpenXml to covert html to word. This generated word file does not show radio buttons and check boxes when opened in MS word. It used to show but with recent windows updates, radio buttons and check boxes disappeared. Html contains form…
Word COM API ShowHiddenText will hide images
Hi I have a question regarding the Word C# COM API. In our application we have a button to hide our custom tags (which are just field codes), however a customer of ours is reporting an issue where their background image is being hidden when that button…
FORMCHECKBOX field code doesn't render checkbox
I have a word document that contains a FORMCHECKBOX field code I can view by hitting ALT-F9, however when I toggle it to not show the field code, there is no checkbox that appears in its place. Why is this? In our software we insert a checkbox when we…
LightDirection on shape with 3D effect is rendered different than specified
Insert a circle, set a large (72pt for 5.04cm circle width) rounded bevel and use a projection without rotation. That way you can see the direction of the lightning. When you rotate the camera, you should mark the axes with arrows. Use a gray fill color…
how add date in openxml
how to add custom date format in openxml
What is "Specular" and "Diffuse" in the lightRig table in section 2.1.1274 in [MS-OI29500]?
Hi all, The table of lightRigs in section 2.1.1274 in [MS-OI29500] has columns "Specular" and "Diffuse". Such columns are missing in section 2.1.1321, which is about legacy lightRigs. What is the meaning of "Specular" and…
What OOXML can I enter in a PPTX to password protect the presentation?
I have a PPTX and I want to make it password protected programatically by inserting OOXML. When I try to check the Diff of a non-protected and protected document, the files in the password protected OOXML are encrypted and the only line that is human…
How to get theme colors data from theme1.xml file when convert ppt to html
**I have confusion related how I read which color and which color css or filter use in theme ppt. I have no idea related how I calculate the actual color ratio from theme1.xml file. Please guide me how I can proceed on it.** This XML file does not…
How to generate 2 worksheets in excel workbook when we are generating that excel from xml after applying OOXML xsl?
Hi, I am not able to relate/create 2nd sheet in xsl using ooxml. How to link Sheet defined in workbook variable to the <worksheet.. > element where we actually populate the data? Thanks.
Conversion of irregular tables doc->docx.
Hello, I am trying to convert a binary doc file that contains table - into docx ooxml format. I have problem with irregular tables. I have 3 questions: When I'm parsing table properties, I can read cell widths (from sprmTDefTable.rgTc80[i].wWidth) …
How to decode *.one files in OneNote Online format?
Hello! I have a library that processes *.one files in OneNote 2010/OneNote Online formats. Unencrypted documents are processed fine. Encrypted documents in OneNote 2010 format also causes no problem. But I couldn't parse encrypted *.one files in…
Conversion table of doc->docx parameters.
Hello, I am trying to convert a doc binary file into docx ooxml format. There are many ".doc" binary format parameters related to e.g. "OOXML/Settings" sections not mapped 1:1 into ".docx" ooxml format. Can you please…
Are the fields in MS-OFORMS in fmPosition swapped?
In MS-OFORMS, specifically https://learn.microsoft.com/en-us/openspecs/office_file_formats/ms-oforms/73c3866f-bbac-4f45-ba70-645fd046bfdf the fmPosition struct is described as "Top (4 bytes)", then "Left (4 bytes)", i.e. vertical…
OOXML - SVG Image doesn't show up preview in box until it gets saved using MS Word.
I am inserting an SVG Image using OOXML 2.18version into document and then uploading to BOX Platform. in BOX Platform the Image preview is not coming, Whereas if I open the document in MS word the image is displaying and if save it to Box, then also…
Excel row height logic calculation
Using C# and OpenXML, given a font name and its height, I need to calculate the exact row height in pixels in order to draw an Excel spreadsheet in a CAD software. What I have done so far: I have been able to accurately calculate a column width given…
Support for style::shrink-to-fit of ODF 1.3
The document [MS-OODF13] states in item a) in 2.1.1275 Part 3 Section 20.360, style:shrink-to-fit, "This attribute is supported in Word 2013 and later." But it is not supported. (Sadly I cannot attach an .odt file here.) Item c) in the same…
DOCX needs repaired, but repair doesn't work and validator says there's no issues
Hello, I have a question about a docx file. It was generated using our own doc gen engine. When you open the file it says the document needs to be repaired, however when you run the file through the OOXML validator, it says there are no issues with the…
How to differentiate between MSI,PUB file vs DOC/XLS/PPT files
What is the correct technical way to differentiate between MSI,PUB,MSG vs DOC,XLS,PPT files. Basically all these files are of ole type and have magic header as D0 CF 11 E0 A1 B1 1A E1 Would like to know what is the correct way to find the file type for…
Generate Organization Chart In OpenXML / Powerpoint / Excel using Python
Hi, I would like to generate a powerpoint organization chart. I'ved found this but it does not provide much information that I…
List of all URLs in docx file
Hi, I am trying to analyze various .docx files (OOXML) for purposes of finding maliciousness in them. Now i know that one way is to hide malicious URLs. Now, due to the file structure of these files, they contain a lot of links that look like this: …