473,320 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

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
Jun 27 '08 #1
1 3123
"Pedro Rosas Silva" <pe*************@gmail.comwrote in message
news:76**********************************@26g2000h sk.googlegroups.com...
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...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/fil...a/Default.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tom Frey | last post by:
Hi, is there any solution available for transforming WordML XML files to PDF on server requests. Here is basically what I'm looking for: We have like 15 different types of contracts that have...
5
by: Clifford W. Racz | last post by:
Has anyone solved the issue of translating lists in Word 2003 (WordML) into xHTML? I have been trying to get the nested table code for my XSLT to work for a while now, with no way to get the...
0
by: Logician | last post by:
Can anyone point me in the right direction for XML creation from WordML, after using a JPEG/OCR? Problem ======= 1. The WordML has font tags, and I need just data tags for reading by ..NET ...
12
by: who be dat? | last post by:
I'm trying to make a webpage do the following: I want a user to be able to click on a given image (there will be more than one image). Upon clicking a given image, characters specific to that...
0
by: Meena Bhashyam | last post by:
Hi, I am using the following code to try and send a WordML document to the client. The expectation is that MS Word will open and display the data correctly. Instead, I see the source code open up...
0
by: Matthias Langbein | last post by:
Hi all, in ref. to the MSDN-Article "New XML Features of the Microsoft Office Word 2003 Object Model"...
1
by: Biff | last post by:
I have a WordML file that I want to render in the browser in word via ASP.NET. If I use Response.Redirect("filename.xml") in the ASP.NET codebehind I can get it to work. I would prefer to use set...
0
by: madval | last post by:
hi, i'm inserting some images in a word document, and i want to separate this images with a carriage return, but when i insert new lines they are inserted at the end of document. i want to insert:...
3
by: vunet.us | last post by:
why am i unable to insert image background into a tr or td element in IE using preloaded image object, like this: var img = new Image(); img.src = 'blah.gif';...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.