Links – August 17 2011

I’ve been posting some new content over at OpenXMLDeveloper.org, and somehow didn’t manage to post the info here.

I’ve posted the third (out of four) screen-casts around inserting / updating tables-of-contents.

Exploring Tables-of-Contents in Open XML WordprocessingML Documents (Part 3)

My goal is to get the fourth posted before the end of the week.

Update: Here is the complete list of screen-casts in this series.

Link Summary
Screen-cast #1 Explains the markup of tables-of-contents. TOCs use field markup. See Deep dive into OpenXML Fields for more info.
Screen-cast #2 Presents some sample code that shows how to insert TOC markup into a document.
Screen-cast #3 Shows how to use Word Automation to update the TOC.
Screen-cast #4 Shows how to use Word Automation Services to update the TOC.

The following screen-cast was in response to a specific query in the forums on OpenXMLDeveloper.org.  Even if you don’t care about speaker notes in an Open XML PresentationML document, you might be interested in watching this.  It shows my approach to researching Open XML markup.

Screen-cast: Remove Speaker Notes from an Open XML Presentation

The following screen-cast re-affirmed the truism: it takes more time to make a shorter screen-cast.  The following is 6:40 long.

New Screen-Cast: Short and Sweet Intro to DocumentBuilder 2.0

!!!

4 Comments »

  1. Chris B. Behrens said,

    November 29, 2011 @ 2:54 pm

    Several months back, you responded to this thread on OpenXmlDeveloper:

    http://openxmldeveloper.org/discussions/formats/f/15/p/4969/157773.aspx

    I’m running into PRECISELY this same problem. I’m trying to convert offsets and extents into positions and sizes for HTML. Did you ever find a bullet-proof, canonical formula for how PML works here? With those relatively tiny numbers, it looks like a shift in units has occurred. At any rate, I’m facing three possible sources for the position and size:

    GroupTransform.Extent/Offset
    GroupTransform.ChildExtent/ChildOffset
    Shape.Extent/Offset

    Clearly, there’s a relationship between the three, but I haven’t been able to puzzle it out. Any help would be greatly appreciated.

    Thanks,

    CBB

  2. Eric White said,

    November 29, 2011 @ 6:47 pm

    Hi Chris,

    Those extents do make sense once you get the hang of them. Here’s one way to think about them. Imagine you have an image of a pencil, in other words, long and narrow. Now if you rotate it, you can cause the enclosing extents to be a square where the pencil runs from corner to corner. You can also rotate more, and if the pencil was initially tall and narrow, the enclosing extent becomes short and wide. You can imagine grouping several objects, rotating, and seeing the same sort of thing.

    I’ll add this to my list of screen-casts. I will go into PowerPoint, group shapes, move them around, and rotate them, and see the enclosing extents be changed as appropriate. When you finally understand them, they do make sense.

    -Eric

  3. lakshumaiah said,

    June 2, 2015 @ 5:33 pm

    public void Download(byte[] report_data)
    {
    if (report_data != null)
    {
    HttpContext.Current.Response.ContentType = “application/vnd.openxmlformats-officedocument.presentationml.presentation”;
    HttpContext.Current.Response.AddHeader(“Content-Disposition”, string.Format(“attachment; filename={0}”, “ExecutiveSummaryReport.pptx”));
    HttpContext.Current.Response.BinaryWrite(report_data);
    HttpContext.Current.Response.Flush();
    }
    }

  4. lakshumaiah said,

    June 2, 2015 @ 5:33 pm

    i run ProcessPresentationTemplate sample in my local. which you added in the following link

    http://openxmldeveloper.org/blog/b/openxmldeveloper/archive/2011/06/13/open-xml-presentation-generation-using-a-template-presentation.aspx

    i prepared web-application added one button and placed all ur code in button click event.. when i save file in local path.. it’s worked correctly but when save file in the following process it’s giving error

    public void Download(byte[] report_data)
    {
    if (report_data != null)
    {
    HttpContext.Current.Response.ContentType = “application/vnd.openxmlformats-officedocument.presentationml.presentation”;
    HttpContext.Current.Response.AddHeader(“Content-Disposition”, string.Format(“attachment; filename={0}”, “ExecutiveSummaryReport.pptx”));
    HttpContext.Current.Response.BinaryWrite(report_data);
    HttpContext.Current.Response.Flush();
    }
    } }
    }

    Error is .. when i try to open file it”s asking me to repaired the file

    could you please suggest me with solution

RSS feed for comments on this post · TrackBack URI

Leave a Comment