Cannot make Document Assembler example work

Home Forums Open-Xml-PowerTools Cannot make Document Assembler example work

This topic contains 2 replies, has 1 voice, and was last updated by  rogersb 8 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3996

    rogersb
    Participant

    The goal is to apply the Document Builder tools and learn how to build up a word doc from various xml parts or from other sections.

    I open the OpenXmlPowerToolsExamples solution in VS2015, then following one of Eric’s videos try to utilize the DocumentAssembler01 project.
    FAIL!! using System.IO.

      Packaging

    packaging is not found in the system.io namespace. Are you missing an assembly reference?

    but in the Open-XML-SDK I set it up, following the video, ran all tests, taking about 20 minutes, back in the examples solution I replaced the System.IO.Packaging reference with one from the openxmlsdk solution.

    no.

    How can you create the development platform from scratch so that it can use the examples? One solution I have to create now is to take the custom table and bar chart that the code produces, and do this for all projects. so the data comes from a table, then I pick out certain parts to build a grid of info, and the custom stacked barchart.

    But I cannot even get the basics going

    #4005

    rogersb
    Participant

    Seriously, what does it take to get an example to run????

    I go download the Open-Xml-PowerTools-4-1-3 and extract and try to build the example to follow along with the video, DocumentAssembler01

    Im not adding anything, just trying to follow the steps as given. build errors!
    1. System.IO.packaging; there is no “packaging” within System.IO
    type or namespace name ‘Packaging’ does not exist in the namespace ‘System.IO’. (are you missing an assembly reference?) Using directive is unnecessary.
    2. you must add a reference to WindowsBase v4.0.0.0 [this step I did]

    the video says get the example, then build them, but it doesnt work

    #4009

    rogersb
    Participant

    what the documentation didnt say was you go into Tools, Nuget, manage packages for solution, add:
    openxmlpowertools by Eric White
    openxmlsdk-mot by microsoft open technologies
    and apparently system.management.automation by microsoft (unofficial and unsupported) these are checked.

    now it will build

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.