I Used Crystal Report in Win 98 and noe I want to change my platform to WinXP.
my program was something like this.
Dim P As Printer, L As Printer
For Each P In Printers
if someconditionoccurs then
L.PrinterDriver = P.DriverName
L.PrinterName = P.DeviceName
L.PrinterPort = P.Port
and somewhere else in my program
CR1.Destination = crptToPrinter
CR1.PrinterDriver = L.PrinterDriver
CR1.PrinterName = L.PrinterName
CR1.PrinterPort = L.PrinterPort
CR1.Action = 1
this worked in Win98 but now in WinXP I have two problems.
1: Driver for all printers is "winspool"
2: There is something wrong with name of printers
as after calling "Action" error code 20530 with message
"Invalid printer specified" is shown.
Can anybody help me? I use shared printers and I dont know how can I manage it.
Thanks for your attention.