R
Rosemary
Hi,
We have Windows XP and MS Office 2003 in a network environment. In my
Access application, I have my reports hard coded to print to a specific
printer. Last week IT replaced our network printers with new ones. They've
done this in the past, and all I have to do is put the name of the new
printer in the code (in this case, printer #L030647). But this time it isn't
working - the new printer name doesn't come up as the default when I do File
- Print. Instead, I get a printer named "Microsoft XPS Document Writer",
which I've never seen happen before. Below is the set printer code. Where
might I look for the problem?
Set savePrinter = Application.Printer
Set Application.Printer = Application.Printers("\\gesprint\L030647")
strWhere = "[JobId] = " & Me!JobId
stDocName = "Job Ticket"
DoCmd.OpenReport stDocName, acViewPreview, , strWhere
Set Application.Printer = savePrinter
Please let me know if I can supply any further information.
Thanks!
Rosemary
We have Windows XP and MS Office 2003 in a network environment. In my
Access application, I have my reports hard coded to print to a specific
printer. Last week IT replaced our network printers with new ones. They've
done this in the past, and all I have to do is put the name of the new
printer in the code (in this case, printer #L030647). But this time it isn't
working - the new printer name doesn't come up as the default when I do File
- Print. Instead, I get a printer named "Microsoft XPS Document Writer",
which I've never seen happen before. Below is the set printer code. Where
might I look for the problem?
Set savePrinter = Application.Printer
Set Application.Printer = Application.Printers("\\gesprint\L030647")
strWhere = "[JobId] = " & Me!JobId
stDocName = "Job Ticket"
DoCmd.OpenReport stDocName, acViewPreview, , strWhere
Set Application.Printer = savePrinter
Please let me know if I can supply any further information.
Thanks!
Rosemary