Creating a "WORD" document in ASP
Hi All,
I am creating a "Word" document in ASP 3.0.
I need help to insert a "Picture - gif file" at the bottom of the document.
I tried the following codes;
"
dim oWord, oDoc, rangeBold
Set oWord = CreateObject("word.application")
oWord.Application.Visible = true
Set oDoc = oWord.Documents.Add()
' Creating a new paragraph
Set rangeBold = oDoc.Paragraphs.Add.Range
rangeBold.InsertBefore("Signature")
rangeBold.font.bold = True
rangeBold.font.size = 11
rangeBold.font.name = "Arial"
' Inserting a "Picture' file.
oDoc.Shapes.AddPicture "c:\mypicture.gif"
"
It inserts the "Picture" file on the top of the document, which is correct. Because I didn't specify a certain paragraph range for the picture file. But, I don't know the syntax.
I also need a syntax for "Full justify".
Thanks for your help,
mcinar
__________________
MCinar
Love all the creatures because of the creator.
|