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

Help : graphicpathhook

Newbie

Help : graphicpathhook

------_=_NextPart_002_01C57829.A58BDAED
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

=20

I found this piece of code :=20

=20

Paul Klock
- Mar 25, 2003 2:40 pm (#7

Total: 7) =20

=20
=20

----------

global dummygraphic =3D 'c:\images\dummy.tif'

function check_graphic(filename) {
if (access(filename, "r")) {
return filename
}
else {
return dummygraphic
}
}

add_hook("graphicpathhook", "check_graphic")

----------

=20

Is there a way to identify if this hook is call from the editor or from
the print command?=20

=20

Best regards,

=20

Patrick Lemieux

InterDoc


------_=_NextPart_002_01C57829.A58BDAED
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable



------_=_NextPart_002_01C57829.A58BDAED--
Tags (2)
1 REPLY 1
Highlighted

RE: Help : graphicpathhook

Try formatting()


Here's a piece from editmenu.cf:


"Stop Formattin&g" \
cmd "FormatStop" active
"formatting()"





From: Patrick Lemieux

Sent: Thursday, June 23, 2005 3:28
PM
To: adepters@arbortext.com
Subject: Help :
graphicpathhook




style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi,


style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">


I found this piece of
code :







<tr>



<tr>

style="FONT-SIZE: 12pt"> href="http://adepters.arbortext.com/webx?224@104.In8pa2Qjauu.50@28ea@.1dcda4d1/6"> class=size31>Paul
...
class=size31>(# class=size31>style="FONT-SIZE: 9pt; COLOR: #666666"> href="http://adepters.arbortext.com/webx?14@104.In8pa2Qjauu.50@.1dcda4d1/6"> size=3>7 class=size31> Total: 7)



</td>

class=text1>
size=1> style="FONT-SIZE: 9pt; COLOR: black">

</td></tr></table>
style="FONT-SIZE: 9pt; COLOR: black">

</td></tr>
<tr>



<tr>
<td <br="/> style="PADDING-RIGHT: 2.25pt; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; PADDING-TOP: 2.25pt">
lang=EN-CA style="FONT-SIZE: 9pt">----------

global
dummygraphic = 'c:\images\dummy.tif'

function
check_graphic(filename) {
if
(access(filename, "r"))
{
return
filename
}
else
{
return
dummygraphic
}
}

add_hook("graphicpathhook",
"check_graphic")

----------style="COLOR: black">


</td></tr></table>


</td></tr></table>



Is there a way to
identify if this hook is call from the editor or from the print command?






Best
regards,





Patrick
Lemieux


InterDoc

Announcements