version 1.51, 1999/09/24 11:29:35
|
version 1.52, 1999/09/28 13:40:09
|
Line 389 Document document;
|
Line 389 Document document;
|
docPrint = document; |
docPrint = document; |
|
|
/* define the new default PS file */ |
/* define the new default PS file */ |
ptr = TtaGetEnvString (TEXT("APP_TMPDIR")); |
ptr = TtaGetEnvString ("APP_TMPDIR"); |
if (ptr != NULL && TtaCheckDirectory (ptr)) |
if (ptr != NULL && TtaCheckDirectory (ptr)) |
ustrcpy(PSdir, ptr); |
ustrcpy(PSdir, ptr); |
else |
else |
Line 550 STRING data;
|
Line 550 STRING data;
|
TtaSetPrintCommand (pPrinter); |
TtaSetPrintCommand (pPrinter); |
TtaSetPsFile (PSdir); |
TtaSetPsFile (PSdir); |
/* update the environment variable */ |
/* update the environment variable */ |
TtaSetEnvString (_THOTPRINT_EVAR_, pPrinter, TRUE); |
TtaSetEnvString ("THOTPRINT", pPrinter, TRUE); |
TtaSetEnvInt (_PAPERSIZE_EVAR_, PageSize, TRUE); |
TtaSetEnvInt (_PAPERSIZE_EVAR_, PageSize, TRUE); |
PrintDocument (docPrint, 1); |
PrintDocument (docPrint, 1); |
break; |
break; |
Line 647 void InitPrint ()
|
Line 647 void InitPrint ()
|
|
|
/* init printer variables */ |
/* init printer variables */ |
/* read default printer variable */ |
/* read default printer variable */ |
ptr = TtaGetEnvString (_THOTPRINT_EVAR_); |
ptr = TtaGetEnvString ("THOTPRINT"); |
if (ptr == NULL) |
if (ptr == NULL) |
ustrcpy (pPrinter, _EMPTYSTR_); |
ustrcpy (pPrinter, _EMPTYSTR_); |
else |
else |