?
Solved

How to insert an image in word document through ASP..?

Posted on 2003-03-10
5
Medium Priority
?
396 Views
Last Modified: 2012-06-22
Hi,

We are doing an ASP application in which some data will be fetched from database and will be put in a word document. It is working properly.

But we need to insert the company logo at the begining of the the word/rtf document.

Please if anybody knows how to insert an image in word document, let me know.

Thanx in advance.

Kishan.
0
Comment
Question by:d_kishan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 4

Expert Comment

by:Wakie
ID: 8108650
Microsoft Word > Insert > Picture > From File
0
 
LVL 6

Expert Comment

by:bvinson
ID: 8108710
I'm assuming you mean "how do I insert an image in a Word document through code" right? So that the document is generated on the fly by ASP, but at the beginning, your company logo gets inserted?

bvinson
0
 
LVL 7

Accepted Solution

by:
lavinder earned 80 total points
ID: 8108801
hi dkishan

 assuming that you have opened your document in asp, simply use

Selection.InlineShapes.AddPicture FileName:= _
        "pathof imate", LinkToFile:=False, SaveWithDocument:=True

cheers!!
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 8108845
Inserting the image is one thing, setting it's location is another...
0
 
LVL 58

Expert Comment

by:Gary
ID: 9352500
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept Answer by lavinder

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
GaryC123
EE Cleanup Volunteer
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question