>when i use the function getprinter() and choose a network printer the report goes to the default printer and not to the printer i chose.
GetPrinter() will not set the default printer, it will only return the selected printer. You will have to save it to a variable, and follow it by the command SET PRINTER. I think it is the SET PRINTER NAME variation that works best in this case.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)