[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problems with Redmon (Win2k)
From: |
Jörn Schlingensiepen |
Subject: |
problems with Redmon (Win2k) |
Date: |
Wed, 11 Apr 2001 17:26:34 +0200 |
Hi,
im trying to write a filewriter fpr redmon. The program should
get the printer data (e.g. postscript) fron stdin and write it to
a file, namde like the print job (e.g. "Powerpoint - New product").
So I read out enviroment variable "REDMON_DOCNAME",
but in this variable is a string like: "Apple PSWriter NT II - Job 02".
Has anybody an idea, how I could get the name of the print job
in my program?
best regards and thank you
Jörn
PS: My main (Visual C++):
CString filename = "D:\\ps\\";
filename += getenv( "REDMON_DOCNAME");
CFile datei( filename, CFile::modeCreate | CFile::modeWrite );
mboxenv ("REDMON_PORT");
mboxenv ("REDMON_JOB");
mboxenv ("REDMON_PRINTER");
mboxenv ("REDMON_MACHINE");
mboxenv ("REDMON_USER");
mboxenv ("REDMON_DOCNAME");
char tmp[1024];
size_t len;
while (len = fread (tmp, 1, 1024, stdin)) datei.Write(tmp, len);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- problems with Redmon (Win2k),
Jörn Schlingensiepen <=