Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Word VBA
|
Word VBA Discuss using VBA to program Word.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Word VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 17th, 2006, 10:31 AM
Registered User
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to chichiboof Send a message via Yahoo to chichiboof
Default how we use legend of the pictures


  i want to dispaly a dynamique pictures , but i don't know how can i insert from word the legend of picture wich can be controled by other programm

thank's

Aicha ! juste me
 
Old October 18th, 2006, 12:28 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Use the following to include the picture in the document:

    ActiveDocument.InlineShapes.AddOLEObject ClassType:="Paint.Picture", FileName:= _
        "C:\Documents and Settings\My Documents\My Pictures\untitled.bmp", _
         LinkToFile:=True, DisplayAsIcon:=False


And use the followng to change

    ActiveDocument.InlineShapes(1).Field.Code = "LINK Paint.Picture" & Chr(34) & "C:\\Documents and Settings\\160831\\My Documents\\My Pictures\\untitled.bmp" & Chr(34) & Chr(34) & "\a \p"

Replace activedocument with your document and position it to some paragraph or placeholder

Cheers:)
Shasur




http://www.vbadud.blogspot.com
 
Old October 18th, 2006, 02:59 AM
Registered User
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to chichiboof Send a message via Yahoo to chichiboof
Default




  but i would use it on my vbscript programm , i think that is can be any changes on the code , i order to merge my document doc and an other txt in wich i insert the path of the picture for each document

 
thank's

Aicha ! juste me





Similar Threads
Thread Thread Starter Forum Replies Last Post
Graph legend doesn't have enough colors barmanvarn Reporting Services 0 October 13th, 2006 03:45 PM
Fieldset and Legend without forms - possible? socoolbrewster HTML Code Clinic 1 July 2nd, 2006 05:46 AM
Pictures on a report Corey Access 2 October 17th, 2005 10:53 AM
Problem on Pictures mani_he Pro PHP 0 February 8th, 2005 05:03 PM
Pictures mani_he Pro PHP 5 October 28th, 2004 09:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.