home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HomeWare 14
/
HOMEWARE14.bin
/
os2
/
cenv2_19.arj
/
CBPRINT.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-03-08
|
626b
|
21 lines
EXTPROC CEnvi
/**********************************************
*** CBPrint.cmd - Print contents of the ***
*** ver.1 clipboard to the printer ***
**********************************************/
#include <ClipBrd.lib>
ClipText = GetClipboardData(CF_TEXT);
if ( ClipText ) {
printf("Have clipboard text\n");
fp = fopen("\\DEV\\PRN","wt");
if ( fp ) {
fwrite(ClipText,strlen(ClipText),fp);
fclose(fp);
printf("Clipboard text has been sent to the printer.\n");
} else
printf("Error opening printer.\n");
} else
printf("No text data in the clipboard.\n");