How To Add Picture In Word



How To Add Picture In Word-->

This is a short tutorial for how to place a pcture into shape in microsoft word 2007. It will cover placing and replacing a picture into shapes. Set an Image as a Background in Word. If you don't know how to insert background picture in Word.

This topic shows how to use the classes in the Open XML SDK 2.5 forOffice to programmatically add a picture to a word processing document.

The following assembly directives are required to compile the code inthis topic.

Opening an Existing Document for Editing

To open an existing document, instantiate the WordprocessingDocument class as shown inthe following using statement. In the samestatement, open the word processing file at the specified filepath by using the Open(String, Boolean) method, with theBoolean parameter set to true in order toenable editing the document.

The using statement provides a recommendedalternative to the typical .Create, .Save, .Close sequence. It ensuresthat the Dispose method (internal methodthat is used by the Open XML SDK to clean up resources) is automaticallycalled when the closing brace is reached. The block that follows theusing statement establishes a scope for theobject that is created or named in the using statement, in this casewordprocessingDocument. Because the WordprocessingDocument class in the Open XML SDKautomatically saves and closes the object as part of its System.IDisposable implementation, and becauseDispose is automatically called when youexit the block, you do not have to explicitly call Save and Close─aslong as you use using.

The XML Representation of the Graphic Object

The following text from the ISO/IEC29500 specificationintroduces the Graphic Object Data element.

This element specifies the reference to a graphic object within thedocument. This graphic object is provided entirely by the documentauthors who choose to persist this data within the document.

[Note: Depending on the type of graphical object used not everygenerating application that supports the OOXML framework will have theability to render the graphical object. end note]

© ISO/IEC29500: 2008.

The following XML Schema fragment defines the contents of this element

How To Add Picture In Word

How the Sample Code Works

After you have opened the document, add the ImagePart object to the MainDocumentPart object by using a filestream as shown in the following code segment.

Add Picture To Contact

To add the image to the body, first define the reference of the image.Then, append the reference to the body. The element should be in a Run.

Sample Code

How To Add Picture In Word In Mobile

The following code example adds a picture to an existing word document.In your code, you can call the InsertAPicture method by passing in the path ofthe word document, and the path of the file that contains the picture.For example, the following call inserts the picture 'MyPic.jpg' into thefile 'Word9.docx,' located at the specified paths.

After you run the code, look at the file 'Word9.docx' to see theinserted picture.

The following is the complete sample code in both C# and Visual Basic.

Adding Photos To Word Document

See also

Tutorial

Click on thumbnailed images to enlarge

I'll be using this image:
1. Open up Microsoft Word. (you will need the newer or latest version that contains 'wordart.')
2. Go to insert > WordArt > then select the very first example. (Actually, this will work with any of the wordart styles, but I prefer the first one, and the one below it with the dropshadow.)
3. Select whatever text you'd like, type your text, choose the size you want the text to be, then click OK. If you want the image/pattern to show pretty well in the text, you'll need a bold or big text like Impact, Arial Black, etc. (I used Impact, but you can also use any other fonts.)
4. Right-click on the text > Click 'format WordArt'
5. A window should pop up, then under 'fill', click 'fill effects'
6. Click the tab that says 'picture' > select picture > choose the image/pattern you want > Click OK.
7. Then VOILA! You should have your image/pattern filled text! :D You can drag the sides or corners/box to change the size of the text to your liking.
8. After you're done with that, you'll need to take a screenshot in order to save the picture. (press the button on your keyboard that says 'prt scr') Then open up the program Paint > paste the image > crop the image to your liking > then save! (I recommend saving it as a .png)
The finished product:
Here are some other things you can do!:
>>No border
Right-click on text > format WordArt > Under 'line' click the drop down list for color > No color.
If you WANT a border, you can experiment with different colors and the border styles.
>>Patterns
Right-click on text > format WordArt > fill effects > pattern > then choose whatever pattern you like > click OK.
To change the color of the pattern, just click on the drop down list for color under 'fill'
You can also change the transparency.
I didn't include many pictures because I thought it was pretty self explanatory. :) You can do many things, just experiment and see what you like best. :D

Tutorial Comments

Showing latest 6 of 6 comments

How To Add Picture In Word 2007

Picture and texture fills for WordArt are not available in Word 2010 :-(
http://office.microsoft .com/en-us/word-help/add-or-de lete-a-fill-outline-or-effect- for-text-or-wordart-HA01035584 4.aspx

this tutorial helped so much, thanks(:

By yesimfromsidekick on Nov 27, 2009 12:44 pm
Word

Awesomeeee :D thanks

Aw Damn i Have A Mac!

By crossfadelyts on Aug 15, 2009 7:52 pm

Haha, wicked cool. Piazzolla org.

Just using Microsoft Word??? Many people will be pleased with this. XD

How To Add Picture In Word Android

By nonexistent on Aug 10, 2009 2:31 am

Tutorial Details

Author
Submitted onAug 6, 2009
Page views99,028
Favorites18
Comments6
Reviewer
Approved onAug 9, 2009

How To Add Picture In Word Document

Tutorial Tags