home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!uwm.edu!rpi!crdgw1!rdsunx.crd.ge.com!e7sa!ivory
- From: ivory@e7sa.crd.ge.com (John Ivory)
- Newsgroups: comp.windows.open-look
- Subject: Printing from within an Xview program
- Message-ID: <1992Nov10.192610.12443@crd.ge.com>
- Date: 10 Nov 92 19:26:10 GMT
- Article-I.D.: crd.1992Nov10.192610.12443
- Sender: usenet@crd.ge.com (Required for NNTP)
- Organization: Tower Concepts
- Lines: 21
- Nntp-Posting-Host: e7sa.epi.syr.ge.com
-
- What is the prefered mechanism for an Xview program sending something to the
- printer? I would typically want to gen a file, and then do a
- system call to lpr...
-
- sprintf(command, "lpr %s", filename);
- system(command);
-
- The Xview documentation however warns against directly using system
- calls because of confusions with the Notifier. I could have the
- program fork, and then do an exec call, but that seems like a lot
- of effort for the system to go through for such a simple task.
-
- Ideas? Suggestions?
-
- ----------------------------- R A Z O R ... --------------------------- \ \ \
- Tower Concepts John E. Ivory \ \
- 103 Sylvan Way ivory@crd.ge.com \ \
- New Hartford, NY 13413 ivory@e7sa.epi.syr.ge.com \
- (315) 724-1471 \
- ----------------------- A Configuration Management --------------------------
- & Problem Tracking System
-