openxml

Replacing Content Controls in OpenXML

I need something as a placeholder. I at first looked to Content Control as a solution but I'm having some problems with it. I at first looked into adding CustomXML to the .docx but turned away from that because of the i4i lawsuit. Then I decided I would just plain change the text of the Content Control through OpenXML SDK 2.0 but even ...

MS Word: How do I create Building Blocks efficiently?

I need to create a Building Block Gallery with defined Content Controls to make it easy for others to create word documents that would be ready to accept my data. I'm trying to make this as painless for the users as possible. I wanted to make sure all this would be professionally done and look good so I wan't to make sure all the Conten...

Creating excel document as attachment on a sharepoint list

Hi, I've got some problems adding a excel document as attachment on a custom list. I've made an eventreceiver which collects data from other lists and puts the data into an excel document. What i've tried to do to correct the problem: tested CreateContentRow(index, item) in a separate console application (works) checked if theres som...

Problem with Linq re-evaluation, skips content.

Now I'm not really sure what the problem here is but it seems that Linq quaries are re-evaluated each iteration wich is a effect I wan't here. However for some reason he skips elements he shouldn't when he does so. Can someone help me understand what's going on here. Here is the Linq-to-XML code: var contents = (from sdt in document.Ma...

MS-Word to iXBRL

Hi, I need to develop a MS-Word plug in application using VS2008 that converts a docx file having content controls to iXBRL format. iXBRL format is a relatively new financial statement standard. Are there any APIs to help me out or can anyone give me idea to go ahead with it? Thanks in advance. Regards, Saubhagya ...

Office OpenXml: How to get rid of "Click here to enter text" for literal content control with xml generated from serializer

Possible Duplicate: How to get rid of Click here to enter text for literal content control with xml generated from serializer Hello, This issue occurs when you have your content control mapped to xml that doesnt have closing tag and the xml value is empty string or null. For eg. if the xml is and is mapped to literal contro...

How to get rid of "Click here to enter text" for literal content control with xml generated from serializer

Hello, This issue occurs when you have your content control mapped to xml that doesnt have closing tag. For eg. if the xml is and is mapped to literal control than on mapping the text displayed on word document(enable editing or printing) with be something like this Click here to enter text even if you have removed the text when you ...

Word Open XML Mail Merge

I'm attempting to manually create a mail merge using Word's XML (from Word 2007). I have the following XML which isn't working: <w:mailMerge> <w:mainDocumentType w:val="catalog" /> <w:linkToQuery /> <w:dataType w:val="native" /> <w:connectString w:val="Provider=SQLOLEDB.1;Integrated Security=SSPI;Initial Catalog=TheServ...

How to create Hypelink into Excel using openxml in Java.

Hi All, I am trying to add hyperlink to excel file from OpenXML, which I am not able to. Have read somewhere that need to add relationships tag for hyperlink and then refer that id with hyperlink tag, but how to add this relationship tag is I am not getting. Kindly provide me sample code or any guidance as to how to achieve it. Thanks...

Open XML - Incorrect Format

In relation to this post I've been working heavily with Word's Open XML and the libraries available. What seems to be unknown to most is that there is some great resources out there for programatically dealing with the Open XML format for Word (and I don't mean manually writing out XML to the filestream!). My question is regarding some...

Installing OpenXML File Converter

I have written a managed OpenXML file converter in c#, but I'm having trouble with the deployment. For deployment, I am using a VS Setup Project. I guess my first question is, I see some people using a Class Library and others using a Windows Application as the COM server. Is there a preference on either one? My converter has dependenc...

Export the content of content control into another word document

Hi, I have a word document with many content controls. How can I export the content of content control into another word document? I'm using C# and open xml sdk. Regards. ...

Merge multiple <Body> (xml) word documents to 1 document

I have multiple <body> tags from an word document. I do this with the open xml sdk. So the new document should generated with openxml The body's comes from WordprocessingDocument.Open("C:\Temp\Test.docx").MainDocumentPart.Document.Body.OuterXml I have so different body's in a list. With al different values. Changed some text in the x...

How do I get OpenXML onto the clipboard so that it will paste into Excel?

I am generating OpenXml using the DocumentFormat.OpenXML library from Microsoft. I am tring to figure out how to get this document into my clipboard so that I can paste my data into Excel (as if it were copied from Excel). I am able to see OpenXml formated data coming out of Excel, when I copy from within Excel. I need to do the reverse,...

With C# is it possible to put an object on the clipboard that will paste into excel as data and formulas?

In a WPF application, I need to generate data that can be put on the clipboard and pasted into excel. I need to paste something that can carry over data and formulas. I was attempting OpenXML... but I'm not sure that works. I am currently attempting to make raw "Spreadsheet ML" (This is different than OpenXML?) Anyway, if anyone coul...

Programming Word XML in .NET

I'm currently in a development team trying to come up with an app that will be able to accept an Open XML Word document, shred the XML and somehow come up with UI screens on the fly that could be used for data entry. I'm using the Open XML SDK but my challenge has been to come up with a very generic means of representing the document as...

How can I create a Package on a memory stream

Is it possible to create a System.IO.Packaging.Package on a memory stream. I'd like to avoid the file system and do everything in memory if possible. However, the only way to create a Package is to call Package.Open which accepts a stream. However, if the stream is empty, this fails. Any clue? ...

Save Open XML as PDF

Hi All, As part of an investigation into enterprise level server side document generation I have come across Open XML. For those that have used this, how successful were you? Would you recommend it? Can you save the OpenXML to PDF directly or would I need to make use of a 3rd party component? If a 3rd Party component is required, which...

Why doesn't my custom shape fill properly in PowerPoint?

I'm trying to create a number of AutoShapes in code (don't ask why...hehehe). I am using the parameters supplied by Open XML to re-create them and some are working okay, like creating a heart. In some cases, I can create the shape, but it doesn't fill properly. Here's the XML from DrawingML for a FoldedCorner shape: <foldedCorner> ...

Link to Microsoft Open XML SDK tutorials

Anyone know any link to a good Microsoft Open XML tutorials? ...