Guest Additions:
The easier way is to copy the file to be printed to Windows and then print from Windows using an editor such as Notepad (load the file into Notepad then have Notepad do the printing).
To copy files from Ubuntu to Windows, you must setup shared folders. I will go over this in class next week but here are the detailed instructions (some images are attached). Note: The first 9 steps are only done once and never again.
This looks more complicated that it is so don't panic. It basically involves telling Vbox what folder(s) to share then telling Ubuntu to mount it/them (that is, make it/them available).
sudo mount -t vboxsf C_DRIVE shared
You will be asked for a password. Where I have "C_DRIVE" above, you insert the name of the folder to be shared. Where I have "shared" above, you use the name of the directory you created to mount the shared folder in. Everything else should be exactly as shown.
You do this command once and only once per session. However, this command will be in your command history and can be re-executed without re-typing (example to be given in class).
If you browse the folder ("shared" in this case), you will see files from Windows. If you want to copy an Ubuntu file to the shared folder, do:
cp filename ~/shared
where "filename" is the name of the file to be copied and "shared" is the name of the directory in which the Windows folder is mounted. The above will not work correctly unless you have done the mount command. Also, if there already is a file with the same filename in the Windows folder, its contents will be replaced with the Ubuntu file contents.
There is a way to automatically mount the folders. I'll do that later.
To enable user directories, go to /etc/apache2/mods-enabled and type a2enmod userdir.