You can use the WritePrinter api call...as you are using the same hardware there is no need to do any messing with tehfile itself so it should work well.