Printing with fopen, and f*()
-
There is an article here at code project that says you can print directly to a printer by using fopen("lptN", "w") and writing to the file (just like normal). I really want to belive this because I have text and HP GL commands in a file that I need to send out to the printer. I try to fopen("lpt1", "w"); but I get a null pointer back. I did successfully map a printer to lpt1 (identical to his code except for the \\server\printer) (I don't remove it so I can heck via "net use") I am in windows 98. Does anyone have any ideas why it's not working?
-
There is an article here at code project that says you can print directly to a printer by using fopen("lptN", "w") and writing to the file (just like normal). I really want to belive this because I have text and HP GL commands in a file that I need to send out to the printer. I try to fopen("lpt1", "w"); but I get a null pointer back. I did successfully map a printer to lpt1 (identical to his code except for the \\server\printer) (I don't remove it so I can heck via "net use") I am in windows 98. Does anyone have any ideas why it's not working?
Try
LPT:
. I think (but am not sure) this is mapped to the default printer. /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com -
Try
LPT:
. I think (but am not sure) this is mapped to the default printer. /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com -
There is an article here at code project that says you can print directly to a printer by using fopen("lptN", "w") and writing to the file (just like normal). I really want to belive this because I have text and HP GL commands in a file that I need to send out to the printer. I try to fopen("lpt1", "w"); but I get a null pointer back. I did successfully map a printer to lpt1 (identical to his code except for the \\server\printer) (I don't remove it so I can heck via "net use") I am in windows 98. Does anyone have any ideas why it's not working?
-
There is an article here at code project that says you can print directly to a printer by using fopen("lptN", "w") and writing to the file (just like normal). I really want to belive this because I have text and HP GL commands in a file that I need to send out to the printer. I try to fopen("lpt1", "w"); but I get a null pointer back. I did successfully map a printer to lpt1 (identical to his code except for the \\server\printer) (I don't remove it so I can heck via "net use") I am in windows 98. Does anyone have any ideas why it's not working?
LPT stuff designs a printer connected to the parallel port. I doubt this will work with a USB printer or a network printer.
-
There is an article here at code project that says you can print directly to a printer by using fopen("lptN", "w") and writing to the file (just like normal). I really want to belive this because I have text and HP GL commands in a file that I need to send out to the printer. I try to fopen("lpt1", "w"); but I get a null pointer back. I did successfully map a printer to lpt1 (identical to his code except for the \\server\printer) (I don't remove it so I can heck via "net use") I am in windows 98. Does anyone have any ideas why it's not working?
-
There is an article here at code project that says you can print directly to a printer by using fopen("lptN", "w") and writing to the file (just like normal). I really want to belive this because I have text and HP GL commands in a file that I need to send out to the printer. I try to fopen("lpt1", "w"); but I get a null pointer back. I did successfully map a printer to lpt1 (identical to his code except for the \\server\printer) (I don't remove it so I can heck via "net use") I am in windows 98. Does anyone have any ideas why it's not working?