473,563 Members | 2,767 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
programmaticall y, 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 3141
"Pedro Rosas Silva" <pe************ *@gmail.comwrot e in message
news:76******** *************** ***********@26g 2000hsk.googleg roups.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
7588
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 to be filled dynamically with data (names, addresse, etc.). These contracts are up to 30 pages long. Right now they are all in .doc format and we...
5
7401
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 collection that I need. To begin, I am using xsltproc that conmes with Cygwin as my processor. I have no particular affinity to this processor except...
0
1098
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 Solution
12
8342
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 image will be inserted into a textbox which is actually a text area. If the cursor is in the textbox/textarea then the characters are to be inserted...
0
922
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 on a Web Form. What am I not doing right? Any help would be appreciated. Thanks, Meena Dim xmlDoc As New XmlDocument
0
1152
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" (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_wd2003_ta/html/odc_Wdnew2k3XMLOM.asp) I've got a few questions: 1.) They say, the first step to work with XML in a word document is to add the XML-Schema to the...
1
2972
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 the ContentType to the appropriate value and write the actual XML text to the Response object, but I can't get that to work. I've tried the...
0
1857
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: image, new line, image, new line, ... here's the code: ... for(int i=0; i<12; i++) { Word.InlineShape shape =...
3
6491
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'; document.getElementById('someId').style.backgroundImage = "url('"+img.src+"')"; <table><tr id='someId'><td>content</td></tr></table>
0
7665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.