Content
Finding VBA Compressed source code in ole file
Hi, With reference to [MS-OVBA]. I am parsing a .doc file (MS-97-2003) in Python and i am able to read the directory structure. The directory structure is given at the end here. I know that the entry 'Module1' contains some compressed VBA code. Although…


How to disable a directory entry in OLE file
Hi, I am trying to parse a .doc file (OLE file) (MS-97-2003) by reading it byte by byte in python. I am so far successful in extracting the directory structure of the file. Suppose i find a directory named "Macros" in the .doc file and i want…


How to identify number of tokens in TokenSequence. MS-OVBA
Hi, With reference to MS-OVBAhttps://learn.microsoft.com/en-us/openspecs/office_file_formats/ms-ovba/575462ba-bf67-4190-9fac-c275523c75fc Section 2.4.1.1.7 Token Sequence It is mentioned that: "The number of Tokens in the final TokenSequence MUST be…


Keywords of directory names in a .doc file
Hi, I am trying to fetch the directory structure that’s inside a .doc file (OLE file) (MS 97-2003). I am able to fetch the names of streams and storages (like VBA, Macro, etc) correctly by following the directory chain specified in the FAT sector of…


Fetching the FIB of a .doc file
I am trying to parse a (.doc) file (Microsoft Word 97-2003 Document) for purposes of extracting the FIB (File Information Block). In the Documentation given in this link: https://interoperability.blob.core.windows.net/files/MS-DOC/%5bMS-DOC%5d.pdf it…


How to fix error069040_01.xml in Excel
Hello, I open my excel file and the system informs that there is a problem with the content and that it would try to recover as much information as possible. Once I accept, the message is the following: <recoveryLog…


OpenXML SDK: How do I find the formula in a CellFormula where the type is "dataTable"?
I'm writing an application in C# to read formulas from various cells in an Excel spreadsheet, and one section is giving me trouble. In Excel, it displays the formula as "{=TABLE(,B5)}" for all cells in this range. I stepped through my C#…
.xlsb file in DocumentFormat.OpenXml.Packaging throwing error of OpenXmlPackageException: 'The specified package is not valid.'
.xlsb file in DocumentFormat.OpenXml.Packaging throwing error of OpenXmlPackageException: 'The specified package is not valid.'


Default values for attributes in clrSchemeMapping do not exist
Look at 2.1.395 Part 1 Section 17.15.1.20, clrSchemeMapping (Theme Color Mappings) in [MS-OI29500]. It has a remark, that default values "t1" and "t2" do not exist. I think, that there should be similar remarks for the default values…


Word document is corrupt for unknown reason
Hello, I have a Word document that was generated using our product that is corrupt for an unknown reason. Their input file is a docm file and I have a docx and a docm output file which says it is corrupt. I have run both documents through an OOXML…


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…


I found an error in your doc
https://learn.microsoft.com/en-us/openspecs/office_file_formats/ms-ovba/c375cbf2-b9c6-4594-b064-6dfb830f1851 The size of Data in bytes MUST be CompressedChunk.CompressedChunkHeader.CompressedChunkSize (section 2.4.1.1.4) plus 3. This should be plus 1.


What is invalid about this docx?
Hi, I generated this docx with my software. The Open XML SDK productivity tool does show some validation errors, but fixing these errors doesn't make it so this docx can be opened in Word. Usually when I have an invalid docx word gives me the option to…


Updated writeProtection logic
Hi, it looks like MS have changed how the writeProtection element (one definition found https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.writeprotection?view=openxml-2.8.1) behaves in Word documents. Prior to Word 365…
How to sets the PPT background use openxml
I'm using openxml to manipulate ppt, but I don't know how to modify the ppt background, hope to get help, thank you.
Pass Authenication cookie to MS Word to open word document without MS Word authentication popup
Hello, We have a website where we list the MS Word documents and a WebDav setup and user has to login for viewing the list of documents. Users can edit the documents online in Office online and while opening the document remotely(by supplying the…


What does acronym STTF stand for
Hi Team, I would like what acronym STTF stand for


[MS-ONESTORE] TransactionLogFragment's nextFragment size
OneNote seems to add some implicit padding to the TransactionLogFragment. According to the [MS-ONESTORE] spec, section 2.3.3.1, the TransactionLogFragment has the following components with their respective size in bytes: list of TransactionEntries…


ST_HINT is missing "cs" enumeration inside RNC/XSD schema files
Hi, Whilst updating the our software to use the Java library "Apache POI", we came across an issue whereby the documentation for the ECMA-376 5th Edition standard specification differs from the WML.RNC and WML.XSD files contained in Part 1…


Unlock Endpoint not being called after Iframe is closed in WOPI, when upgraded Office Online Server to version to 16.0.10338.20039.
Hi All, We have integrated Word application and editing docs using WOPI Integration in our website. I am aware of the fact that in earlier versions of WOPI, OOS, there is a known bug that Unlock endpoint does not get called after the editing session is…

