I use VB 4.0 16 bit, Crystal Reports 3.0.1.32.
I have a print routine set up that prints a crystal report to the
printer. On the machine that I develop I can print out fine, however
on the machine that I install the software on nothing happens.
I use the code :
If PEOpenEngine() Then
PrintJobHandle = PEOpenPrintJob("order.rpt")
If PrintJobHandle Then
If PEOutputToPrinter(PrintJobHandle, 1) Then
If PESetSelectionFormula(PrintJobHandle,
"{Orders.OrderNo} = " & PrevOrderNo) Then
If PEStartPrintJob(PrintJobHandle, 1) Then
PEClosePrintJob PrintJobHandle
PECloseEngine
Else
'can't start print job
The problem is with PEStartPrintJob which returns false. It returns true
on the developing machine and prints off the report. Both machines are
networked and linked to the same printer. Is there anybody
who can help me here. Am I missing some dll's. Thanks in advance,
Dave.
--
David Nicoll
Analyst/Programmer
Imajica.
10 Queens Rd,
Aberdeen. AB15 4ZT.
p : 01224 634342
f : 01224 634344
w : http://www.imajica.co.uk