Ron Chestnut writes:
> The MEDM "Print" output makes the postscript printers unhappy. I am
> unable to find information on where the temporary file is and/or how
> to not have the file deleted. Also, I'm guessing that PSPRINTER
> and/or PS_PRINTER serve to direct the printout here or there.
The files are in /tmp/medm.xwd*. To have the file not deleted,
you need to modify the code. The appropriate place is is printUtil.c
in the graphX/printUtils directory. Do something near the bottom of
the file like:
#define DEBUG_PRINT
#if DEBUG_PRINT == 0
strcpy(commandBuffer,"lp -d$PSPRINTER ");
strcat(commandBuffer, psFileName);
system(commandBuffer);
/* Delete files */
strcpy(commandBuffer,"rm ");
strcat(commandBuffer,newFileName);
system(commandBuffer);
strcpy(commandBuffer,"rm ");
strcat(commandBuffer,psFileName);
system(commandBuffer);
#endif
MEDM requires the PSPRINTER environment variable to exist for
printing to work. It should be set to a printer name for a printer
that accepts Postscript.
There is also the Printer Setup... option under the File menu.
Invoking this will cause the environment variable to be set to the
printer of your choice (in the MEDM shell).
I am not sure what you mean by "unhappy". There will be some bug
fixes related to printing from 24-bit displays in the next release.
However, you still get somewhat reasonable output without them.
Otherwise, to my knowledge, printing works well.
Good luck.
-Ken
- Navigate by Date:
- Prev:
Re: Statically Built MEDM and GDCT for HPUX9.05? Ralph Lange
- Next:
Statically built MEDM/GDCT, xfdApp distribution Bakul Banerjee
- Index:
1994
1995
1996
<1997>
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
MEDM Print Ron Chestnut
- Next:
Statically Built MEDM and GDCT for HPUX9.05? Dave Reid
- Index:
1994
1995
1996
<1997>
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|