Parsi
asked on
Crystal Report in WinXP
Hello Everybody
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
endif
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.
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
endif
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Since the OCX hasn't been updated since CR6 and CR9 is the first version supported on Win XP, I suspect you will have trouble doing what you are trying to do.
What version of CR? If it is CR8 or 8.5 I would recommend you use the RDC to display the reports.
mlmcc