Jul 26 2010

Microsoft

Category: Microsoft office 2010admin @ 7:06 pm

I’d been meaning to post a write-up on how to create a simple SpreadsheetML document from scratch, but just haven’t had the time this week to pull it all together. Office Professional 2010 is great!Hopefully I’ll get that out early next week. I had already done a similar post for WordprocessingML (both for Beta 1 as well as RTM). Here are a couple things I wanted to point out for the week:

  1. Arccast interview on Office Open XML - Doug Mahugh and I did a live webcast last month with Ron Jacobs. Ron now has both Part 1 and Part 2 of the interview available up on Channel 9. Office 2010 –save your time and save your money.
  2. Upcoming SpreadsheetML Generator – Stephane Rodriguez (who also wrote the Open XML diffing tool) is getting really close to releasing the latest version of his xlsgen tool; and it will include SpreadsheetML support.The invention of Microsoft Office 2010 is a big change of the world.
  3. (http://www.arstdesign.com/BBS/BulletinBoard.php?qs_id=1661). I think he’s planning on still going with the B2TR version of SpreadsheetML and won’t update to the RTM version until after Office 2007 ships. There were still a couple changes that tool place between B2TR and RTM for spreadsheetML that brought it fully inline with the Ecma standard, but that resulted in B2TR not having the ability to open RTM spreadsheetML files (similar to what all three applications experienced between B2 and B2TR). By using Office 2010 Professional, you can save your money and time.
  4. Apose.Words supports WordprocessingML – I saw this blog post the other day that mentions that Apose.Words now supports exporting as WordprocessingML.
  5. Document your SQL DB using WordprocessingML - From this blog post: “Data Dictionary Creator (DDC) is a simple application which helps you document SQL Server databases. Office 2010 key is for you now!
  6. It stores all the information in Extended Properties, so it’s easier to keep the documentation in sync with the database as it changes… DDC exports to WordML, Excel, HTML, and XML.”
  7. Generate Wordprocessing Documents from your SAP Web Application Server - This is a cool intro article that shows how you can leverage WordprocessingML to generate rich documents directly from your SAP server. It would be really interesting to see some examples of leveraging the custom defined schema support and content controls in Word 2007 to not only populate the documents with SAP data, but to also mine that information back out of the document if the user has edited it. Office 2010 download is available now!
  8. Leverage SpreadsheetML to build rich reports - I actually don’t know anything about this product :-) , but I randomly came across it and noticed that it allows you to generate spreadsheets using the original SpreadsheetML format we started working on over 8 years ago (and shipped with Office XP): “Perfect table creation – NEW SPREADSHEETML The new Microsoft format SpreadsheetML is supported. Based on XML, it generates richer editing and formatting of Excel files optimized for Windows Office 2003. Your tables are perfectly reproduced in Excel 2003, retaining the text and the colored background.” I always love seeing people leveraging the existing technologies. The new SpreadsheetML format will give them a lot more power, as the old one didn’t support Excel’s full feature set. Many people like buy Office 2010 Home.
  9. WordML import and export on the Mac - I think that this tool is built on top of the TextEdit functionality built into the Mac (which supports WordML itself). Not sure if they actually do anything additional in terms of the WordML support.


Jul 26 2010

[Content_Types].xml

Category: Microsoft office 2010admin @ 7:04 pm

OK, so we’ve now created the main workbook.xml part and the worksheet.xml part, as well as created a relationship between the two.Office 2010 –save your time and save your money.

Every Office Open XML file must declare the content types used in the ZIP package. That is done with the [Content_Types].xml file. We currently have two parts in this document that we need to declare content types for. The invention of Microsoft Office 2010 is a big change of the world.The first is the document.xml part; the second is the _rels/.rels part. So, the content types file should look like this:

<?

xml version=1.0 encoding=UTF-8 standalone=yes?>
<
Types xmlns=http://schemas.openxmlformats.org/package/2006/content-types>
  <
Default Extension=rels ContentType=application/vnd.openxmlformats-package.relationships+xml/>
  <
Override PartName=/workbook.xml ContentType=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml/>
  <
Override PartName=/worksheet.xml ContentType=application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml/>
</
Types>

Here we are saying that anything ending with the .rels extension is of type Package Relationship, and we also declare that the part workbook.xml is of type workbook and worksheet.xml is of type worksheet.By using Office 2010 Professional, you can save your money and time.

Create Version 1 of our simple SpreadsheetML file

OK, we should now have five files. Three of the files are in the root directory (workbook.xml; worksheet.xml & [Content_Types].xml); and in the “_rels” directory we have the “.rels” file and the “workbook.xml.rels” file. Select the two files and the “_rels” directory and ZIP them up. Make sure that when you zip them up, the two files and the _rels directory are all at the root level.Office 2010 key is for you now!

Open this file in Excel, and you now have a simple file.

*Beta 2 TR Note*

Note that the namespaces are different between B2TR of Excel, and the final version of the Ecma standard. In this post, I have shown what the final version of the Ecma standard would look like. Office 2010 download is available now!The RTM build of Office will use this same format. If you are on B2TR though, then you’ll need to tweak the following namespace in the XML files: http://schemas.openxmlformats.org/spreadsheetml/2006/main

Instead of using that namespace, you’ll need to use this namespace http://schemas.openxmlformats.org/spreadsheetml/2006/7/main to get it working in B2TR. The two parts you’ll need to update with this namespace are wordsheet.xml and workbook.xml. Everything else should work fine.Many people like buy Office 2010 Home.

Well, that was the first piece. In the next post, we’ll add functions to the spreadsheet.Office Professional 2010 is great!


Jul 26 2010

worksheet.xml

Category: NEWSadmin @ 7:02 pm

The worksheet.xml part is going to be pretty simple. The first row in the sheet will have the column titles (”Sub Total”, “Tax”, and “Total”). Office 2010 key is for you now!

The next 3 rows will only have data in the first column as we won’t create the calculation functions until later in this example.

The worksheet.xml part should look something like this:

<?

xml version=1.0 encoding=UTF-8 standalone=yes?>
<
worksheet xmlns=http://schemas.openxmlformats.org/spreadsheetml/2006/main xmlns:r=http://schemas.openxmlformats.org/officeDocument/2006/relationships>
  <
sheetData>
    <
row>
      <
c t=inlineStr>
        <
is>
          <
t>Sub Total</t>
        </
is>
      </
c>
      <
c t=inlineStr>
        <
is>
          <
t>Tax</t>
        </
is>
      </
c>
      <
c t=inlineStr>
        <
is>
          <
t>Total</t>
        </
is>
      </
c>
    </
row>
    <
row>
      <
c>
        <
v>14.95</v>
      </
c>
   
</row>
    <
row>
      <
c>
        <
v>19.95</v>
      </
c>
    </
row>
    <row>
      <
c>
        <
v>4.95</v>
      </
c>
    </
row>
  </
sheetData>
</
worksheet> Office 2010 –save your time and save your money.

_rels/.rels

How does a consuming application know where it should start when opening an OpenXML file? The first place you always look is the package relationships file. The package relationship file will always be located in the “_rels” directory, and it’s always called “.rels“. We need to create an XML file that tells the consumer that “workbook.xml” is the first place you should go, and that this type of document is an Office Open XML document:

<?

xml version=1.0 encoding=UTF-8 standalone=yes?>
<
Relationships xmlns=http://schemas.openxmlformats.org/package/2006/relationships>
  <
Relationship Id=rId1 Type=http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument Target=workbook.xml/>
</
Relationships>

The invention of Microsoft Office 2010 is a big change of the world.


Jul 26 2010

workbook.xml

Category: Microsoft officeadmin @ 7:00 pm

The workbook is essentially the container for the various worksheets. Office 2010 key is for you now!The workbook is where you can reference the styles part, shared string tables, and any other pieces of information that apply to the entire Spreadsheet file. Office 2010 download is available now!In this example, since we’re just creating a super basic spreadsheet, the workbook will be very simple:

<?

xml version=1.0 encoding=UTF-8 standalone=yes?>
<
workbook xmlns=http://schemas.openxmlformats.org/spreadsheetml/2006/main xmlns:r=http://schemas.openxmlformats.org/officeDocument/2006/relationships>
  <sheets>
    <
sheet name=Brian sheetId=1 r:id=rId1/>
  </
sheets>
</workbook>

The only interesting thing we did here was to create the sheet tag, which then references out worksheet via the r:id attribute. Many people like buy Office 2010 Home.Remember that almost every time you reference another part or even something outside of the file like a hyperlink or a linked image, you will use a relationship. The next thing we need to do is actually create that relationship in the workbook.xml part’s relationship file.Office Professional 2010 is great!

_rels/workbook.xml.rels (part 1)

This is pretty basic. We just need to create a relationship that has an id of rId1 so that it will match the reference from the workbook.xml part:

<?

xml version=1.0 encoding=UTF-8 standalone=yes?>
<
Relationships xmlns=http://schemas.openxmlformats.org/package/2006/relationships>
  <
Relationship Id=rId1 Type=http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet Target=worksheet.xml/>
</
Relationships>

Notice that a relationship has three main attributes. It has an Id attribute who’s use will be more obvious in a bit. Office 2010 –save your time and save your money.The Target attribute tells you where to go, and the path is relative to the parent directory of the “_rels” folder that relationship file is in (in this case that’s the root directory). The Type attribute describes what kind of relationship it is (ie what kind of stuff is it pointing at).The invention of Microsoft Office 2010 is a big change of the world.

In this part we have one relationship who’s type is “worksheet”, and the target points to our worksheet.xml part. Now we need to actually put some content in the worksheet.xml part.

By using Office 2010 Professional, you can save your money and time.


Jul 26 2010

Simple SpreadsheetML file

Category: Microsoft office 2010admin @ 6:58 pm

I posted a bunch of “Intro to SpreadsheetML” posts about a year or so ago, but those were all based on the Office XP spreadsheetML format. Office 2010 key is for you now!I think an updated series based on the Open XML standard is long overdue. I’ll start off just building a simple table, and in future posts show more about formatting, formulas, and maybe even some charts.Office 2010 download is available now!

Today, we’ll start by creating a simple table. Then we’ll add a little bit of number formatting and some formulas. In the end, we’ll have the following table (where the tax & total columns are automatically calculated based on the Sub Total column):

Sub Total Tax Total

$ 14.95

$ 1.20

$ 16.15

$ 19.95

$ 1.60

$ 21.55

$ 4.95

$ 0.40

$ 5.35

We’ll take this in 3 separate blog posts:

  • Part 1 – Create the simple table without formatting or calculations.Many people like buy Office 2010 Home.
  • Part 2 – Add functions to calculate “Tax” and “Total”
  • Part 3 – Add formatting so the data shows up as currency

Part 1 – Simple Table

Since we won’t do the formatting or formulas initially, our table will look like this:

Sub Total Tax Total

14.95

   

19.95

   

4.95

   

As I discussed in my “simple wordprocessingML document” post, the Office Open XML format is comprised of a number of XML files within a ZIP package. Office Professional 2010 is great! he files follow a simple set of conventions called the open packaging conventions (described in Part 2 of the standard). You need to declare the content types of the parts, as well as tell the consuming application where it should start (via the package relationship). Office 2010 –save your time and save your money.

Unlike the WordprocessingML document we created though, a SpreadsheetML file has a bit more structure to it (the same is true for presentations). A SpreadsheetML file is actually a workbook that can contain multiple worksheets. so even your most simple workbooks will have at least 5 files within the ZIP package.The invention of Microsoft Office 2010 is a big change of the world. So for this example, let’s start by creating a folder somewhere and in that folder create the following files:

  • workbook.xml
  • worksheet.xml
  • [Content_Types].xml
  • _rels/.rels
  • _rels/workbook.xml.rels

By using Office 2010 Professional, you can save your money and time.


Jul 26 2010

microsoft office 2007

Category: Microsoft officeadmin @ 6:55 pm

As I just mentioned in a comment I left in last week’s post, I’m actually attempting to take a bit of a break this week. Office 2010 download is available now!We actually wrapped up the development work on Office 2007 last Friday. It’s been a huge release, and it’s really exciting to see it finally go out the door. I’ve been working on these file formats for years now, and it’s going to be fun to see this release wrap up. I need a vacation :-) .Many people like buy Office 2010 Home.

I didn’t want to be totally lame though and not blog at all, so here are a few interesting things I wanted to point out:

  • Office 2007 released to manufacturing – it’s been a lot of hard work, but it’s been worth it. Office Professional 2010 is great!
  • Save Open XML from Older versions of Office - since it’s just a web release, you can already get the final version of the free updates that allows older versions of Office to open and save in the Office Open XML format (before Office 2007 is available). Office 2010 –save your time and save your money.
  • This latest release allows you to save using the final 1.5 version of the Ecma working draft (which will be up for a final approval vote by the Ecma General Assembly in about a month). The invention of Microsoft Office 2010 is a big change of the world.
  • Latest version of the ODF to Open XML translator available – The team working on this open source project has announced an updated release of the translator is now available. By using Office 2010 Professional, you can save your money and time.
  • It sounds like they are pretty much done with the ODF to Open XML conversion for wordprocessing documents, and they even have a prototype going the other way (Open XML to ODF). Another really funny thing they found when testing this tool was that while Google claims ODF support in google docs, they actually are supporting the old star office XML format, but putting the ODF extension on it. Office 2010 key is for you now!


Jul 26 2010

Microsoft office 2007

Category: Microsoft office 2010admin @ 6:54 pm

Re-Create Version 1 of our simple SpreadsheetML file

So if you take those five parts and ZIP them up you’ll get a spreadsheet that looks like this:

Sub Total Tax Total
14.95    
19.95    
4.95    

Version 2 – Add functions to the first row of data

Many people like buy Office 2010 Home.Now we’re going to add a function in cells B2 and C2 that will give us the tax, and total value for the first row of data. Let’s say that the tax we apply is going to be 8%. That means that the function to calculate the tax is going to be: =A2*0.08. The function for the total will then just be: =A2+B2.Office Professional 2010 is great!

In order to update our spreadsheet, we’re only going to need to edit the worksheet.xml part, and we can leave the rest of the parts alone.

worksheet.xml (version 2)

We will need to create cells for B2 and C2, and add the formula definition we want for each of those cells. So, in the second row, we’ll add two more <c> elements. This time though, rather than using an inline string (<is>) or value (<v>), we’ll use the function tag <f>.Office 2010 –save your time and save your money.

<?xml version=1.0 encoding=UTF-8 standalone=yes?>
<
worksheet xmlns=http://schemas.openxmlformats.org/spreadsheetml/2006/main xmlns:r=http://schemas.openxmlformats.org/officeDocument/2006/relationships>
  <
sheetData>
    <
row>
      <
c t=inlineStr>
        <
is>
          <
t>Sub Total</t>
        </
is>
      </
c>
      <
c t=inlineStr>
        <
is>
          <
t>Tax</t>
        </
is>
      </
c>
      <
c t=inlineStr>

The invention of Microsoft Office 2010 is a big change of the world.


        <
is>
          <
t>Total</t>
        </
is>
      </
c>
    </
row>
    <
row>
      <
c>
        <
v>14.95</v>
      </
c>
   <c>
    <
f>A2*0.08</f
>
   </
c
>
   <
c
>
    <
f>A2+B2</f
>
   </
c>

   
</row>
    <
row>
      <
c>
        <
v>19.95</v>
      </
c>
    </
row>
    <row>
      <
c>
        <
v>4.95</v>
      </
c>
    </
row>
  </
sheetData>
</
worksheet>

Create Version 2 of the spreadsheet

Take the original parts (_rels/.rels; _rels/workbook.xml.rels; workbook.xml; [Content_Types].xml) as well as our new worksheet.xml part and ZIP them up. By using Office 2010 Professional, you can save your money and time.When you open the resulting file, you should have a spreadsheet with the formulas automatically calculated and it looks something like this:

Sub Total Tax Total
14.95 1.196 16.146
19.95    
4.95    

Version 3 – Make the formulas repeat for the other rows

There are now two options for adding the formulas to the next two rows. Office 2010 key is for you now!You could do the same thing we did in the first row, and update the cell references (ie A3*0.08 & A4*0.08), but that requires you to update the cell references for each row. It also requires the consuming application to parse each formula, which can be time consuming when you get into larger spreadsheets and more complex formulas.Office 2010 download is available now!Another approach is to use a shared formula. If you were in an application like Microsoft Excel, you could copy the formula from the first row and paste it into the rows below it. Excel would automatically update the cell references in each row so that the tax and total was properly calculated. You can do the exact same thing in the file format by specifying that the formula is a shared formula.

worksheet.xml (version 3)

To specify that the formula from the first row is shared, we use the t=”shared” attribute. We then specify what the range is that we want it to apply to, and give the formula an id that the lower cells can reference. Then we create the cells for B3:C4 and specify that they are sharing a formula. The resulting worksheet.xml part will look like this:

<?xml version=1.0 encoding=UTF-8 standalone=yes?>
<
worksheet xmlns=http://schemas.openxmlformats.org/spreadsheetml/2006/main xmlns:r=http://schemas.openxmlformats.org/officeDocument/2006/relationships>
  <
sheetData>
    <
row>
      <
c t=inlineStr>
        <
is>
          <
t>Sub Total</t>
        </
is>
      </
c>
      <
c t=inlineStr>
        <
is>
          <
t>Tax</t>
        </
is>
      </
c>
      <
c t=inlineStr>
        <
is>
          <
t>Total</t>
        </
is>
      </
c>
    </
row>
    <
row>
      <
c>
        <
v>14.95</v>
      </
c>
   <c>
    <f t=shared ref=B2:B4 si=0>A2*0.08</f>
   </c>
   <
c
>
    <
f t=shared ref=C2:C4 si=1>A2+B2</f
>
   </
c>

   
</row>
    <
row>
      <
c>
        <
v>19.95</v>
      </
c>
   <c>
    <f t=shared si=0“/>

   </c>
   <
c
>
    <
f t=shared si=1“/>

   </
c>

    </
row>
    <row>
      <
c>
        <
v>4.95</v>
      </
c>
   <c>
    <f t=shared si=0“/>

   </c>
   <
c
>
    <
f t=shared si=1“/>

   </
c>

    </
row>
  </
sheetData>
</
worksheet>

Create Version 3 of the spreadsheet

So, again we’ve only updated the worksheet.xml part, so re-generate the ZIP file with the updated worksheet.xml part. You should get the following table of data:

Sub Total Tax Total
14.95 1.196 16.146
19.95 1.596 21.546
4.95 0.396 5.346

So, now you know the basics of using a formula in a spreadsheetML file. It’s pretty straightforward. You could also specify the values of the formulas using the <v> tag as a sibling of the <f> tag, but that isn’t necessary.

In the next post, we’ll format the cells so that they actually look like currency, and not just plain numbers.


Jul 26 2010

Simple SpreadsheetML file

Category: Microsoft office 2010admin @ 6:51 pm

This is a continuation on the “Simple SpreadsheetML file Part 1″ post I made a couple weeks ago.Office 2010 –save your time and save your money. In that post we created a SpreadsheetML file that consisted of a simple table with 3 columns and 3 rows of data (plus a header row).The invention of Microsoft Office 2010 is a big change of the world. The table looked like this:

Sub Total Tax Total
14.95    
19.95    
4.95    

Our goal though at the end of this series is to create a table that looks like this:

Sub Total Tax Total
$ 14.95

$ 1.20

$ 16.15

$ 19.95

$ 1.60

$ 21.55

$ 4.95

$ 0.40

$ 5.35

The pieces that we still need to add are the functions that calculate the values for the second and third columns, as well as the cell formatting. Today we’re going to add the functions.By using Office 2010 Professional, you can save your money and time.

Part 1 – Simple Table

Let’s pick up where we ended in Part 1 with the following parts:

workbook.xml

<?xml version=1.0 encoding=UTF-8 standalone=yes?>
<
workbook xmlns=http://schemas.openxmlformats.org/spreadsheetml/2006/main xmlns:r=http://schemas.openxmlformats.org/officeDocument/2006/relationships>
  <sheets>
    <
sheet name=Brian sheetId=1 r:id=rId1/>
  </
sheets>
</workbook>

_rels/workbook.xml.rels

<?xml version=1.0 encoding=UTF-8 standalone=yes?>
<
Relationships xmlns=http://schemas.openxmlformats.org/package/2006/relationships>
  <
Relationship Id=rId1 Type=http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet Target=worksheet.xml/>
</
Relationships>

worksheet.xml

<?xml version=1.0 encoding=UTF-8 standalone=yes?>
<
worksheet xmlns=http://schemas.openxmlformats.org/spreadsheetml/2006/main xmlns:r=http://schemas.openxmlformats.org/officeDocument/2006/relationships>
  <
sheetData>
    <
row>
      <
c t=inlineStr>
        <
is>
          <
t>Sub Total</t>
        </
is>
      </
c>
      <
c t=inlineStr>
        <
is>
          <
t>Tax</t>
        </
is>
      </
c>
      <
c t=inlineStr>
        <
is>
          <
t>Total</t>
        </
is>
      </
c>
    </
row>
    <
row>
      <
c>
        <
v>14.95</v>
      </
c>
   
</row>
    <
row>
      <
c>
        <
v>19.95</v>
      </
c>
    </
row>
    <row>
      <
c>
        <
v>4.95</v>
      </
c>
    </
row>
  </
sheetData>
</
worksheet>

_rels/.rels

<?xml version=1.0 encoding=UTF-8 standalone=yes?>
<
Relationships xmlns=http://schemas.openxmlformats.org/package/2006/relationships>
  <
Relationship Id=rId1 Type=http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument Target=workbook.xml/>
</
Relationships>

[Content_Types].xml

<?xml version=1.0 encoding=UTF-8 standalone=yes?>
<
Types xmlns=http://schemas.openxmlformats.org/package/2006/content-types>
  <
Default Extension=rels ContentType=application/vnd.openxmlformats-package.relationships+xml/>
  <
Override PartName=/workbook.xml ContentType=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml/>
  <
Override PartName=/worksheet.xml ContentType=application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml/>
</
Types>

Office 2010 download is available now!


Jul 25 2010

Announcing the Release(3)

Category: Microsoft office 2010admin @ 8:37 pm

As part of the August 2009 CTP we have added functionality that allows developers to abstract away some of the difficulty intrinsic with markup compatibility and extensibility. Office 2010 download is available now!This feature allows you to preprocess the content of Open XML files based on specific Office versions. Using the example above, if we use the August CTP to open the document based on Office 2007 we will only see the following XML markup:

Many people like buy Office 2010 Home.

<w:document>
<w:body>
<w:p w:rsidR=00FA0A01 w:rsidRDefault=00AF5A8F>
<w:r>
<w:rPr/>
<w:pict>
<v:roundrect id=Rounded Rectangle 1 o:spid=_x0000_s1026 style=position:absolute… arcsize=10923f o:gfxdata= fillcolor=#4f81bd strokecolor=#385d8a strokeweight=2pt>
<v:textbox style=mso-rotate-with-shape:t/>
</v:roundrect>
</w:pict>
</w:r>
</w:p>
<w:sectPr w:rsidR=00FA0A01>…… </w:sectPr>
</w:body>
</w:document>

If your solution expected a pict element as a child of a run element, then your solution would work perfectly with this file. Office Professional 2010 is great!In other words, using this feature, solutions won’t break when future versions of Office introduce new markup into the format.

General Improvements

First off we want to thank everyone for their feedback and suggestions! Based on your feedback we made the following big changes to the SDK:

  • AutoSave: By default, previous CTPs of the SDK forced you to perform a manual save for changes made to specific parts within the package.Office 2010 –save your time and save your money.
  • We have now introduced the concept of AutoSave, where changes would automatically be saved into the package, without the need to call Save() methods. For those not interested in this functionality, there is a way to turn off this feature .The invention of Microsoft Office 2010 is a big change of the world.
  • Base Classes for Sdt objects: The SDK currently has multiple classes to represent Sdt objects based on the different types of elements specified in the standard. The August 2009 CTP has introduced one base class for each of these objects in order to make it easier for you to develop solutions. In other words, your solution can now just work on the following abstract class:  SdtElement for Sdt objects.By using Office 2010 Professional, you can save your money and time.
  • Simple types for Boolean type attributes: The standard specifies the concept of a simple type called ST_OnOff, which allows for values like “On”, “Off”, “True”, “False”, “0″, and “1.” We have updated the SDK to allow you to directly get/set such attributes using standard C# Boolean values. For example, you can now set attribute values to false or true. Without this enhancement you were forced to compare values using the enum BooleanValues.Office 2010 key is for you now!

What’s Next?

Our next task for the SDK is to add Office 2010 Office Open XML support. Expect to see another CTP in the next several months released with this functionality. Our goal is to be done with the Open XML SDK 2.0 around the same time as Office 2010 ships (date not public yet).

More Feedback Always Welcome

Please continue to send us your feedback, either on this blog or at our Microsoft Connect site for the Open XML SDK https://connect.microsoft.com/site/sitehome.aspx?SiteID=589. We look forward to hearing from you.


Jul 25 2010

Announcing the Release(2)

Category: Microsoft officeadmin @ 8:35 pm

The Open XML SDK can now help you find these types of problems and will report the error to you by giving you the following information:

  1. User friendly description of the error.Many people like buy Office 2010 Home.
    • In this case, imagine seeing the following error “Attribute ‘id’ should have unique value. Its current value ‘1′ duplicates with others.”
  1. An Xpath to the exact location of the error
    • In this case, imagine seeing the following path “/w:endnotes[1]/w:endnote[4],” which indicates that the problem exists in the fourth endnote element .Office Professional 2010 is great!
  2. The part where this error exists
    • In this case, imagine seeing the following part information “DocumentFormat.OpenXml.Packaging.EndnotesPart”

We hope that you can use this type of information to more easily find and fix problems. I will devote at least one blog post in the future to go into details on the validation functionality.Office 2010 –save your time and save your money.

Markup Compatibility/Extensibility Support

As defined by the ISO/IEC-29500 specification, there are several ways to extend markup within the Open XML formats. Some of the extension mechanisms, like ignorable content and alternate content blocks, may result in differences within the XML tree structure of a document. The invention of Microsoft Office 2010 is a big change of the world.Here is an example of markup that contains an alternate content block:

<w:document mc:Ignorable=w14 wp14>
<w:body>
<w:p w:rsidR=00FA0A01 w:rsidRDefault=00AF5A8F>
<w:r>
<w:rPr/>
<mc:AlternateContent>
<mc:Choice Requires=wps>
<w:drawing>…… </w:drawing>
</mc:Choice>
<mc:Fallback>
<w:pict>
<v:roundrect id=Rounded Rectangle 1 o:spid=_x0000_s1026 style=position:absolute… arcsize=10923f o:gfxdata= fillcolor=#4f81bd strokecolor=#385d8a strokeweight=2pt>
<v:textbox style=mso-rotate-with-shape:t/>
</v:roundrect>
</w:pict>
</mc:Fallback>
</mc:AlternateContent>
</w:r>
</w:p>
<w:sectPr w:rsidR=00FA0A01>…… </w:sectPr>
</w:body>
</w:document>

In the example above, the expected child of the run element differs depending on the chosen alternate content choice.By using Office 2010 Professional, you can save your money and time. The fallback choice is what one would expect from a document created in Office 2007, while the choice requiring the wps namespace is from a document created in Office 2010. Imagine you are a solution developer working with Open XML who has deployed a solution that works perfectly on top of Office 2007 Open XML files. Office 2010 key is for you now!How would your solution work with files coming in from Office 2010? Specifically, would your solution work with documents that contain these types of extension mechanisms?Office 2010 download is available now!


« Previous PageNext Page »