Giter VIP home page Giter VIP logo

office-content's Introduction

README

Thank you for your interest in Office developer documentation!

Ways to contribute

You can contribute to Office developer documentation in a few different ways:

*We're only taking documentation contributions for the OpenXML Conceptual content at this time

Repository organization

The content in the office-content repository is grouped first by article language, then by topic. The README.md file at the root of each topic directory specifies the structure of the articles within the topic.

Article within each topic are named by MSDN GUID rather than title name. This is a side effect of our document management process and cannot be changed at this time. We highly recommend using the table of contents within each topic directory (see links below) to navigate to the files you wish to view or edit.

Articles in this repository

Open XML

Before we can accept your pull request

Minor corrections

Minor corrections or clarifications you submit for documentation and code examples in this repository do not require a Contribution License Agreement (CLA). Submissions are taken in the form of pull requests. We will do our best to review pull requests within ten business days.

Larger submissions

If you submit new or significant changes to documentation and code examples, you need to send a signed Contribution License Agreement (CLA) before we can accept your pull request if you are in one of these groups:

  • Members of the Microsoft Open Technologies group.
  • Contributors who don't work for Microsoft.

As a community member, you must sign the Contribution License Agreement (CLA) before you can contribute large submissions to this project, but you only need complete and submit the documentation once. Please carefully review the document; you may also need to have your employer sign the document.

Signing the Contribution License Agreement (CLA) does not grant you rights to commit to the main repository, but it does mean that the Office Developer and Content Publishing teams will be able to review and consider your contributions and you will get credit if we do.

You can download the Contribution License Agreement (CLA) here. Please fill out the form and email it to [email protected].

Once we receive and process your CLA, we will do our best to review your pull request(s) within ten business days.

Guidance for contributors

For more guidance on contributing to Office developer documentation, see CONTRIBUTING.md in this repo.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

office-content's People

Contributors

beckandros avatar bruno-brant avatar ccachris avatar chaasof avatar dalinaum avatar davidchesnut avatar dorreneb avatar edhzsz avatar elizabethsamuel-msft avatar george-polevoy avatar jhershey-ms avatar jmclej avatar juanelojuanelo avatar keyur32 avatar laschultz avatar lauragra avatar lindalu-msft avatar lnyswonger avatar michaelmainer avatar mimisasouvanh avatar osbornm avatar relikens avatar saulcandib avatar seankilleen avatar sethgr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

office-content's Issues

InsertCellInWorksheet does not work properly

Current code will fail in different scenarios. One of them: A1, B1, AD1 are existing cells while we are trying to insert C1. I recommend to update code as follows.

This part:

Cell refCell = null;
        foreach (Cell cell in row.Elements<Cell>())
        {
            if (cell.CellReference.Value.Length, == cellReference.Length)
            {
              if (string.Compare(cell.CellReference.Value, cellReference, true) > 0)
              {
                refCell = cell;
                break;
              }
            }
        }

should be replaced by this part:

Cell refCell = null;
			foreach (var cell in row.Elements<Cell>())
			{
				if ((cell.CellReference.Value.Length == cellReference.Length && string.Compare(cell.CellReference.Value, cellReference, StringComparison.OrdinalIgnoreCase) > 0)
					|| cell.CellReference.Value.Length > cellReference.Length)
				{
					refCell = cell;
					break;
				}
			}

Excel files aren't like this code

Looking over: https://msdn.microsoft.com/en-us/library/office/gg278316.aspx#MinWBScenario

I am struck by how different this article is from an actual minimal Excel file. For instance...

[Content Types].xml is not mentioned
the xl subfolder is not mentioned
the separation in the worksheets and _rels and similar is not mentioned
etc.

I realize that this article is about OpenXML, and that one can organize the output as they see fit. But given that Excel is the canonical example of SpreadsheetML, it seems some discussion based on real-world examples would be useful.

Documentation bug, GetCellValue does not handle formulas correctly

In the following article:
https://github.com/OfficeDev/office-content/blob/master/en-us/OpenXMLCon/articles/15e26fbd-fc23-466a-a7cc-b7584ba8f821.md

The sample implementation for GetCellValue does not handle formulas correctly. Strictly speaking, it is mishandling "values" (due the implementation of InnerText providing the concat of all inner text).

The issue occurs with the following steps (Using Office 2003):

  1. Put any text into cell A1 (e.g. "exampletext")
  2. Enter into cell A2 "=A1" (with out quotes)
  3. Save, then run the sample code on the workbook and retrieve the value for A2

The above scenario will create sheet data as follows (formatted for readability, only relevant sections included)

<sheetData>
    <row r="1" spans="1:1">
      <c r="A1" t="s">
        <v>0</v>
      </c>
    </row>
    <row r="2" spans="1:1">
      <c r="A2" t="str">
        <f>A1</f>
        <v>exampletext</v>
      </c>
    </row>
  </sheetData>

(The above sheetdata A1 references the shared string table with index 0, which will result in the string "exampletext")

The problem occurs on the following line of code.

value = theCell.InnerText; // value is "A1exampletext" instead of just "exampletext" or "A1"

Instead, the sample should really reference the value or formula directly

if (theCell.CellValue != null) value = theCell.CellValue.Text;
else if (theCell.CellFormula != null) value = theCell.CellFormula.Text;
else value = theCell.InnerText;//only use this as a final fallback if all else fails

Alas my understanding of the Open xml spec is limited and I'm unsure of what other potential issues could occur due to the implementation of InnerText (e.g. inner string + value?)

Problem with code while working with office 2017 and visual Studio 2017

Hi Team.
The given code is only creating a PPTX file only under document directory when used with visual studio 2017 and Power point 2017. But code is unable to add the slide to pptx file. Please check for once. If possible then Please upload a code which can works with visual studio 2017 and Powerpoint 2017 .

Reading text with spelling errors

While reading a text like this: Found promising wins at Mphasis and Niranjan Chinoy:

Because Mphasis and Niranjan Chinoy are not recognized by English dictionary, the read of this sentence is split into 4 as:
Found promising wins at
Mphasis
and
Niranjan Chinoy

Is there a way spelling check can be ignored?

There is a paragraph inside a run

I paste pictures into word document. And the pictures can't be recognized by OpenXml SDK.
Inside my docx file, I found some abnormal structure:

w:r>
<w:p xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing">
<w:r>
<w:drawing>
<wp:anchor distT="0" distB="0" distL="114300" distR="114300" simplePos="0" relativeHeight="251658240" behindDoc="0" locked="0" layoutInCell="1" allowOverlap="1">
<wp:simplePos x="0" y="0"/>
<wp:positionH relativeFrom="column">
<wp:align>center</wp:align>
</wp:positionH>
<wp:positionV relativeFrom="paragraph">
<wp:posOffset>2540</wp:posOffset>
</wp:positionV>
<wp:extent cx="5352176" cy="1837188"/>
<wp:wrapTopAndBottom/>
<wp:docPr id="9" name="media/GIUACAFYtDB.png"/>
<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:nvPicPr>
<pic:cNvPr id="0" name="media/GIUACAFYtDB.png"/>
<pic:cNvPicPr/>
</pic:nvPicPr>
<pic:blipFill>
<a:blip r:embed="rId9"/>
<a:stretch>
<a:fillRect/>
</a:stretch>
</pic:blipFill>
<pic:spPr>
<a:xfrm>
<a:off x="0" y="0"/>
<a:ext cx="5352176" cy="1837188"/>
</a:xfrm>
<a:prstGeom prst="rect"/>
</pic:spPr>
</pic:pic>
</a:graphicData>
</a:graphic>
</wp:anchor>
</w:drawing>
</w:r>
</w:p>
</w:r>

A paragraph with picture is inside a run. Can I read the picture using OpenXml SDK in such condition?

skypeWebSDKApi.signInManager.signIn do not send a response

Hi,

I have another problem about SigninManager. when I login in like this;

[email protected]

abdc.com is reachable. but If I write wrong domain for example; [email protected] (which domain name is nonexist) I am not getting a response and my application is waiting. nothing happens. here is my sample code;

setting include username, password, domain information.

function doLogin(settings) {
return new Promise((resolve, reject) => {
window.skypeWebSDKApi.signInManager.signIn(settings).then((response) => {
resolve(response);
}, (error) => {
reject(error);
}).catch(reject);
});
}

what is the problem? what do you think?

Reading Date field

When I use OpenXML to read the date field, it returns added number value. It comes up as 42454 instead of 03/25/2016.

Apparently contradictory statements, perhaps a little explanatory text?

This document appears to contradict itself when describing the minimum contents of a workbook.

In the "minimum workbook scenario" section, the minimum workbook is said to consist of:

A single sheet
A sheet ID
A relationship Id that points to the location of the sheet definition

However, in the "Generated SpreadsheetML" section, which is generated from code that purports to create such a minimal book, the diagram shows...

folder
workbook.xml
sheet.xml

If a workbook.xml is required, why is that not mentioned in the "minimum workbook scenario"? I believe the first part is referring to the object structure and the later to the files that represent that structure, but if this is the case it should really make that very clear.

Then a few lines later it says "The workbook.xml.rels file"... which is previously not mentioned. This file does not appear in the image of the minimal workbook. Is this file actually required? And am I correct in thinking the data earlier referred to as "A relationship Id" is stored in this .rels file?

Generally, I think it would make this document much easier to understand if the relationship between the concepts at the top and the actual files further down was clearly defined.

Bug in documentation sample code

The code of How to: Remove hidden text from a word processing document doesn't work on my computer.

Unhandled Exception: System.IO.IOException: Entries cannot be opened multiple times in Update mode.
   at System.IO.Compression.ZipArchiveEntry.OpenInUpdateMode()
   at System.IO.Compression.ZipArchiveEntry.Open()
   at System.IO.Packaging.ZipStreamManager.Open(ZipArchiveEntry zipArchiveEntry, FileMode streamFileMode, FileAccess streamFileAccess)
   at System.IO.Packaging.ZipPackagePart.GetStreamCore(FileMode streamFileMode, FileAccess streamFileAccess)
   at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)
   at delete_hidden_text.Program.WDDeleteHiddenText(String docName) in /home/xxx/Documents/xxx/delete_hidden_text/Program.cs:line 47
   at delete_hidden_text.Program.Main(String[] args) in /home/xxx/Documents/xxx/delete_hidden_text/Program.cs:line 14

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.