Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

How to insert an image in a WordML document through C#?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pedro Rosas Silva - 20 Apr 2008 23:38 GMT
Hi everyone,

Is anybody aware of a way how to insert an image in a WordML document
programmatically, through C#?

I have a C# application that loads into memory a WordML document
(XmlDocument).
The document is tagged in certain places so that the C# application
can search for those tags (using the System.Xml namepace) and fill
some text in the document.
For text items everything is simple.

But I also need to insert images in the WordML document. The <:pict>
element in WordML is quite complex.
Are you aware of any API that can do this? Given a filename, it should
insert the WordML stuff with the image.

Please notice that I cannot use Microsoft Word Object Model, because
MS Word will not be available.
It will be a Web application and the Server will not have MS Word
installed. The .Net framework available is version 1.1.

Please advice if you have any experience with images in WordML.
Thank you.
Best Regards,

 Pedro Rosas Silva
Mark Rae [MVP] - 21 Apr 2008 00:12 GMT
> Please notice that I cannot use Microsoft Word Object Model, because
> MS Word will not be available.
> It will be a Web application and the Server will not have MS Word
> installed.

Server-side Office automation would almost certainly not have worked anyway:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2
http://support.microsoft.com/default.aspx/kb/288367

> Please advice if you have any experience with images in WordML.
http://www.aspose.com/categories/file-format-components/aspose.words-for-.net-an
d-java/Default.aspx


Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.