Word DDE graphics filter problem

R

Ron Abbott

This works fine in all versions of Word except Word XP ( now also upgraded
to SP2)
I am using Windows XP Professional

Using DDE from Access V2 (16 bit) to insert a JPG or BMP image into a frame
in a Word document.

Wordbasic command uses INSERTPICTURE command (see below)

Error message : Run-time Error '1286' - the graphics filter was unable to
convert this file

The filename is then displayed.

Debug points to following statement :

WordBasic.InsertPicture Name:="O:\pic\PL1654_1.JPG"


All help would be very gatefully received !


PS, a manual Insert Picture from file works fine (so the graphics filter is
installed OK) - it is only the DDE/Wordbasic environment that produces the
error !

Same problem on Windows 2000 rinning XP Office.

Cannot find any reference to this in Microsoft knowledgebase or Google
groups.
 
B

Bob Buckland ?:-\)

Hi Ron,

If I create a macro within Word 2002 I can duplicate
the error if the file name uses double backslashes
as part of the qualifier, which could be happening
through the DDE connection:

Works:
WordBasic.Insertpicture Name:="D:\My Documents\My Pictures\test.jpg"

Doesn't Word:
WordBasic.Insertpicture Name:="D:\\My Documents\\My Pictures\\test.jpg"

=============
This works fine in all versions of Word except Word XP ( now also upgraded
to SP2)
I am using Windows XP Professional

Using DDE from Access V2 (16 bit) to insert a JPG or BMP image into a frame
in a Word document.

Wordbasic command uses INSERTPICTURE command (see below)

Error message : Run-time Error '1286' - the graphics filter was unable to
convert this file

The filename is then displayed.

Debug points to following statement :

WordBasic.InsertPicture Name:="O:\pic\PL1654_1.JPG"


All help would be very gatefully received !


PS, a manual Insert Picture from file works fine (so the graphics filter is
installed OK) - it is only the DDE/Wordbasic environment that produces the
error !

Same problem on Windows 2000 rinning XP Office.

Cannot find any reference to this in Microsoft knowledgebase or Google
groups. >>
 
R

Ron Abbott

No, I definitely am only sending one "\" between each folder area.
I know that mail merge requires double backslashes to refer to JPG files,
but DDE does not.
The macro line that it fails on, reports the correct file path with single
backslashes !
I have tried changing the case of the filename in the folder, but no luck.
Since my DDE application, (Access V2) is 16 bit, I have made sure that the
path names are less than 8 characters.
The full path name as reported in the macro is "O:\pic\PL1654-1.JPG"
(DDE creates it's own macro called TempDDE)
My O: drive is substituted on the local drive, but I understand that the
problem also exists if the O: drive is a mapped networked drive.

Any other thoughts ?

Ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top