Classic ASP BasicsFor beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
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 didn't know that I cannot post the same topic to multiple forms. Since I didn't get help from one form, I decided to post the same topoc for the other ASP related forms.
I am also looking for WROX book "WORD 2000 VBA Programmers". I couldn't find it on the WROX site. If you can, please help me to find it.
Did you solve the problem to insert picture in the btm of word page from ASP?
I have a bookmark(fig1) where I want to place my picture, I use the following codes, but picture is always placed at the top of the page.