Printing on a Network

Once you have the name of a printer, to print on a network use the CopyFile function or the CreateFile and WriteFile functions.

    To print using CopyFile

    To print using CreateFile and Writefile

  1. Create a file on the network printer by calling CreateFile.
  2. Write the data or document to be printed to the newly created file by calling the WriteFile function.
  3. Close the file to queue the print job.