dcole wrote:So I was able to get your invoice demo up and working, as well as one of my own. There was one small hitch I had - how did you put the repeat content control on the table? I tried a couple of different ways, and couldnt get it with my own table - ended up copying yours and modifying it in my own document to get it working.
Did you draw the table first, put cursor in the row, select to the end of the row, then choose the content control? Then drag the other CC's into the interior of the Repeat CC?
I tried making a one row table and selecting it, and then putting the CC around it that way - never could get it working. When I ran my code, it would only put in the first entry from my custom XML, not any of the repeats.
dcole wrote:Second question, and probably most important. If I am doing this for a resume, and I have a list of employers for an employee, I was able to to get it to loop over the previous Employers and insert them into my document (using a table, i just turned off borders, it turned out nicely!). Then I thought I would be able to embed another table in my Employers table, and pull the same trick, where in XML i have something like this
So in other words I want it to grab the first employer, then repeat over all those projects that the person had in there for that employer.
I tried to set my binding up on that embedded table like so:
But I get a NPE in the code when it gets to this line: customXmlDataStoragePart.preprocess(wordMLPackage);
Is my tag set up wrong, or is this just not a feature yet?
dcole wrote:[com.sun.istack.SAXException2: unable to marshal type "org.docx4j.wml.Pict" as an element because it is missing an @XmlRootElement annotation
dcole wrote:I could get it working like this:
Users browsing this forum: No registered users and 2 guests