The print_doc function is used to print a document with a printer.
Using the function:
Parameters: 1. printer_type = the type of the printer local = local printer network = network printer 2. filename = the file to print. 3. net_printer_folder (optional) = define network printer folder if connected to a network printer.