473,414 Members | 1,751 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Running Wod from Access

I currently use Automation to send text to Word Templates from an
Access 97 application - using bookmarks to place the text where I want
it.

My question is - is it also possible to send an image, and if so, how?

TIA
Dave
Nov 13 '05 #1
2 1682
da**@k2computers.co.uk (Dave Griffiths) wrote in message news:<56**************************@posting.google. com>...
I currently use Automation to send text to Word Templates from an
Access 97 application - using bookmarks to place the text where I want
it.

My question is - is it also possible to send an image, and if so, how?

TIA
Dave


Something I use in vbscript (easily adaptable to vba) to add a
signature to letter on install to the workstation. Should at least
set you in the right direction.
dim appWrd
dim docWrd
dim rngWrd

set AppWrd = wscript.createobject("word.application")

set docWrd = appWrd.documents.open("PathToTemplate")

docWrd.unprotect

set rngWrd = docWrd.bookmarks("signature").range

docWrd.inlineshapes.addpicture
"PathToPictureYouWantToAdd",false,true,rngWrd

'Function AddPicture(FileName As String, [LinkToFile],
[SaveWithDocument], [Range])
'I copied the above from the help file to tell you what the arguments
are.

docWrd.protect 2,false,""

docWrd.save

docWrd.close

appWrd.quit

set rngWrd = nothing

set docWrd = nothing

set appWrd = nothing
Nov 13 '05 #2
Thanks very much. I haven't had a chance to try it yet but I can see
what you're doing am I'm sure it will be OK

Dave

us****@yahoo.com (Dan Morgan) wrote in message news:<fe**************************@posting.google. com>...
da**@k2computers.co.uk (Dave Griffiths) wrote in message news:<56**************************@posting.google. com>...
I currently use Automation to send text to Word Templates from an
Access 97 application - using bookmarks to place the text where I want
it.

My question is - is it also possible to send an image, and if so, how?

TIA
Dave


Something I use in vbscript (easily adaptable to vba) to add a
signature to letter on install to the workstation. Should at least
set you in the right direction.
dim appWrd
dim docWrd
dim rngWrd

set AppWrd = wscript.createobject("word.application")

set docWrd = appWrd.documents.open("PathToTemplate")

docWrd.unprotect

set rngWrd = docWrd.bookmarks("signature").range

docWrd.inlineshapes.addpicture
"PathToPictureYouWantToAdd",false,true,rngWrd

'Function AddPicture(FileName As String, [LinkToFile],
[SaveWithDocument], [Range])
'I copied the above from the help file to tell you what the arguments
are.

docWrd.protect 2,false,""

docWrd.save

docWrd.close

appWrd.quit

set rngWrd = nothing

set docWrd = nothing

set appWrd = nothing

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Si | last post by:
Hi Guys I am using this code to execute an Access VBA function from ASP: strDbName = strDataSource & "data\webjobs.mdb" Set objAccess = Server.CreateObject("Access.Application")...
1
by: Mike S. Nowostawsky | last post by:
I am getting this error when I try to run a program in my cgi-bin directory (don't know what I'm still missing to make it work): *** Authentication required! This server could not verify that...
5
by: Chris Dugan | last post by:
Hi, has anybody come across a solution to running an Access97 database on Windows XP. The situation I have is an Access 97 database that runs perfectly from Win95/98 clients running Access97, the...
7
by: Rob | last post by:
I am an Access developer and have done many Access databases in the standard Front-end on the workstations, backend on the server (over a LAN) but have never worked with Access over Citrix, though...
1
by: Stinky Pete | last post by:
Hi, I've got two users needing to look at the same database, but both are running differnent versions of access. One is running running Win 98 / Access 97 and the other is running Win XP /...
3
by: Patrick Fisher | last post by:
What are the implications of running a MS-Access BE and an SQL-Server BE on the same Terminal Server? Assuming that the TS can handle the load are there any other issues? Thanks Patrick
3
by: jliusolar | last post by:
Hi I am trying to figure out why an application get this error when I am trying to open the application's asmx file from localhost. I don't have indexing service running(it set as manual and not...
8
by: Shooter4Life8 | last post by:
I am trying to run a macro from my VB.NET program. Here is my code. Dim myAccess As Access.Application Dim allMacro As String = "ALL-Macros" myAccess.DoCmd.RunMacro(allMacro) I get the error....
0
by: mogenses | last post by:
This is going to be a good one but may be easy for you experts. I have recently joined a tech support dept supporting an application using ACCESS 2.0 DATABASES and I believe written in Fox Pro. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.