TOP Format XML .NET
Open XML は ISO/IEC 29500 で標準化されているファイル フォーマット
Open XML は ISO/IEC 29500 で標準化されているファイル フォーマット
10 行でズバリ!! Office - Open XML ドキュメントの作成
Create simple Word 2007 documents without needing Word 2007 installed
Generating Microsoft Office Documents with the Open XML SDK
HowTo: Insert an image into a Word document and display it using OpenXML
How to: Insert a Picture into a Word Processing Document
Images in Open XML documents
Embedding Foreign Objects (PDF, TXT, GIF, etc…) into Microsoft Word using OpenXml 2.0 (Well, in collaboration with COM)
Embedding an Open XML File in another Open XML File
Create simple Word 2007 documents without needing Word 2007 installed
Generating Microsoft Office Documents with the Open XML SDK
HowTo: Insert an image into a Word document and display it using OpenXML
How to: Insert a Picture into a Word Processing Document
Images in Open XML documents
Embedding Foreign Objects (PDF, TXT, GIF, etc…) into Microsoft Word using OpenXml 2.0 (Well, in collaboration with COM)
Embedding an Open XML File in another Open XML File
ECMA-376 | Office Open XML File Formats |
Class Libraries
DocumentFormat.OpenXml Namespace
DocumentFormat.OpenXml.Packaging 名前空間
DocumentFormat.OpenXml.Drawing 名前空間
DocumentFormat.OpenXml.Drawing.Wordprocessing 名前空間
DocumentFormat.OpenXml.Drawing.Pictures 名前空間
DocumentFormat.OpenXml.Math Namespace
DocumentFormat.OpenXml.Spreadsheet Namespace
DocumentFormat.OpenXml.Presentation Namespace
DocumentFormat.OpenXml Namespace
DocumentFormat.OpenXml.Packaging 名前空間
DocumentFormat.OpenXml.Drawing 名前空間
DocumentFormat.OpenXml.Drawing.Wordprocessing 名前空間
DocumentFormat.OpenXml.Drawing.Pictures 名前空間
DocumentFormat.OpenXml.Math Namespace
DocumentFormat.OpenXml.Spreadsheet Namespace
DocumentFormat.OpenXml.Presentation Namespace
namespace | class | dll |
DocumentFormat.OpenXml.Packaging | WordprocessingDocument | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml.Packaging | MainDocumentPart | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml.Packaging | ImagePart | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml.Wordprocessing | Document | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml.Wordprocessing | Body | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml.Wordprocessing | Paragraph | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml.Wordprocessing | Run | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml.Wordprocessing | Text | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml.Wordprocessing | RunProperties | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml.Wordprocessing | RunFonts | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml | OpenXmlElementList | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml | OpenXmlElement | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml | OpenXmlLeafElement | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml | OpenXmlContext | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml.Drawing.Wordprocessing | Extent | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml.Drawing.Wordprocessing | EffectExtent | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml.Drawing.Wordprocessing | DocProperties | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml.Drawing | GraphicFrameLocks | DocumentFormat.OpenXml.dll |
DocumentFormat.OpenXml.Drawing.Pictures | NonVisualDrawingProperties | DocumentFormat.OpenXml.dll |
CS | C++ |
REFERENCES+= /r:"C:\Program Files\Open XML SDK\V2.0\lib\DocumentFormat.OpenXml.dll" | |
REFERENCES+= /r:"c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\WindowsBase.dll" |
unzip: if [ ! -e DOCX ] ; then mkdir DOCX ; fi cd DOCX; unzip ../test.docx sdktool: /cygdrive/c/Program\ Files/Open\ XML\ SDK/V2.0/tool/OpenXmlSdkTool.exe &
最新の Word Viewer の入手方法
Word/Excel/PowerPoint 用 Microsoft Office 互換機能パック ... Microsoft Office 2007 の Word 、Excel、および PowerPoint で導入され、Office 2010 でも引き続き同様のアプリケーションで採用されている Open XML ファイル形式の文書、ブック、およびプレゼンテーションを開いたり、編集、保存を行うことができます。
Word/Excel/PowerPoint 用 Microsoft Office 互換機能パック ... Microsoft Office 2007 の Word 、Excel、および PowerPoint で導入され、Office 2010 でも引き続き同様のアプリケーションで採用されている Open XML ファイル形式の文書、ブック、およびプレゼンテーションを開いたり、編集、保存を行うことができます。
#using <mscorlib.dll> #using <System.dll> #using <DocumentFormat.OpenXml.dll> #using <WindowsBase.dll> // for ZIP files - System.IO.Packaging.Package class using namespace System; //using namespace DocumentFormat::OpenXml; //using namespace DocumentFormat::OpenXml::Packaging; //using namespace DocumentFormat::OpenXml::Wordprocessing;; //using System.IO.Packaging; int main(array<System::String ^> ^args){ DocumentFormat::OpenXml::Packaging::WordprocessingDocument^ package = DocumentFormat::OpenXml::Packaging::WordprocessingDocument::Create( "test.docx", DocumentFormat::OpenXml::WordprocessingDocumentType::Document); DocumentFormat::OpenXml::Packaging::MainDocumentPart^ mainDocumentPart1 = package->AddMainDocumentPart(); mainDocumentPart1->Document = gcnew DocumentFormat::OpenXml::Wordprocessing::Document(); DocumentFormat::OpenXml::Wordprocessing::Text^ textFirstLine = gcnew DocumentFormat::OpenXml::Wordprocessing::Text("Hello World"); DocumentFormat::OpenXml::Wordprocessing::Run^ run = gcnew DocumentFormat::OpenXml::Wordprocessing::Run(); run->AppendChild<DocumentFormat::OpenXml::Wordprocessing::Text^>(textFirstLine); DocumentFormat::OpenXml::Wordprocessing::Paragraph^ para = gcnew DocumentFormat::OpenXml::Wordprocessing::Paragraph(); para->AppendChild<DocumentFormat::OpenXml::Wordprocessing::Run^>(run); DocumentFormat::OpenXml::Wordprocessing::Body^ body = gcnew DocumentFormat::OpenXml::Wordprocessing::Body(); body->AppendChild<DocumentFormat::OpenXml::Wordprocessing::Paragraph^>(para); mainDocumentPart1->Document->AppendChild<DocumentFormat::OpenXml::Wordprocessing::Body^>(body); mainDocumentPart1->Document->Save(); package->Close(); return EXIT_SUCCESS; }
.PHONY: all test .SUFFIXES: .exe .obj TARGET=hello all: $(TARGET).exe clear_screen: clear CLRIMAGETYPE=pure LOPT=-clrimagetype:$(CLRIMAGETYPE) COPT=-c -Wall -Od -clr:$(CLRIMAGETYPE) OBJS=$(TARGET).obj $(TARGET).obj: $(TARGET).cpp $(TARGET).exe: $(OBJS) link $(OBJS) /out:$@ $(LOPT) AI_PATH=/AI"c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0" AI_PATH+= /AI"C:\Program Files\Open XML SDK\V2.0\lib" .cpp.obj: cl $(COPT) $< $(AI_PATH) @echo test: test.docx cygstart $< test.docx: $(TARGET).exe if [ -e $@ ]; then rm $@ ; fi ./$(TARGET).exe unzip: if [ ! -e DOCX ] ; then mkdir DOCX ; fi cd DOCX; unzip ../test.docx sdktool: /cygdrive/c/Program\ Files/Open\ XML\ SDK/V2.0/tool/OpenXmlSdkTool.exe &
This means inserting an element that belongs to another part. Do clone the element and insert it.
(some cast) element->CloneNode(true);
最新コメント