
April 29th, 2003, 03:41 PM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
Assuming you're using a windoze compiler such as Visual C++ or Borland C++ or Borland C++ Builder, try using this:
Code:
#include <shellapi.h>
...
... in your print function ...
ShellExecute(NULL, "print", "path\\to\\file", NULL, NULL, SW_HIDE);
You'll also need to add shell32.lib to the list of libraries to link to, if your project doesn't already do this.
See http://msdn.microsoft.com/library/d...hellexecute.asp for documentation on the ShellExecute function. Hope this helps 
|