cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Question about "insert_graphic_file"

Newbie

Question about "insert_graphic_file"

Hi everyone,

When I execute this command :

insert_graphic_file('http://www.test.com/test.gif','graphic')

Epic Editor return me this element :

<graphic fileref="C:\Documents" and<br="/>Settings\plemieux\Desktop\http://www.test.com/test.gif"/>

Of course, it dosen't work. Is there a way to avoid this string to be
insert (C:\Documents and Settings\plemieux\Desktop )?

After that, I try this command :

Insert("<graphic fileref="http://www.test.com/test.gif"/>")

The element is insert, but I cannot view the image.

Is there a way to insert an http reference using the
insert_graphic_file, or, do you know a different way to do it?

I really want this result :

<graphic fileref="http://www.test.com/test.gif"/">

And I really want the image to be display in the editor.

Thanks a lot.

Patrick Lemieux
InterDoc
Tags (2)
1 REPLY 1
Highlighted

Re: Question about "insert_graphic_file"

Hi,

I had a similar problem and got this answer from the Arbortext support:
(At least for Epic 5.1 this helped)

See the online Help topic 'set graphicspath' which you can display by
executing 'help 495' on the Epic command line or by searching on the topic
title in the online Help. There is no 'set' command to simply toggle on or
off the inclusion of the path in the graphics path, but with graphicspath
set, if you insert a graphic which is in one of the paths specified by the
command then only the file name will appear in the href (fileref)attribute.
This can also be done with the APTGRPATH environment variable or through the
Epic Preferences on the File Locations tab.

Regards,
Bjarne
Announcements