Hello all,
I'm using VBA in Great Plains v6to call & print a v8
Crystal report to an Epson
LQ-870 ESCP2 printer. The code (very simple, I have to
admit) is below. It's
worked fine in Windows 95 for years but as soon as I
install XP and try it I get the
message 'Invalid Printer Specified.' I understand Windows
XP uses a universal driver
called UNIDRV.dll. Is that what's causing the problem?
If so, does anyone have
any idea how to get around it? I've a few things with no
success? I need help!
Thanks,
Don
The code:
' Save document
'SalesTransactionEntry.Save = 1
' Set report file name.. should be located in the
dynamics directory
PickingTicket.ReportFileName = "PickingTicket.rpt"
' Tell Crystal reports to discard any saved data
PickingTicket.DiscardSavedData = True
' Turn off progress dialog box
PickingTicket.ProgressDialog = True
' Set report destination
PickingTicket.Destination = crptToPrinter
PickingTicket.PrinterDriver
= "ESCP2MS.DRV" 'UNIDRV.dll ??
PickingTicket.PrinterName = "Epson LQ-870 ESC/P 2"
PickingTicket.PrinterPort = "LPT1"
' Print report.
PickingTicket.Action = 1