I'm trying to print some basic reports (of PO Receipts)...
The COMAPI report printing class works fine.
When I use the xApi report printing class in a PD_PREVIEW mode it always prompt me an Email window (like if I was using the PD_EMAIL mode)
Every other mode works fine but the PD_PREVIEW mode seems to have a bug..
Is this a known ACCPAC issue ?
I'm using a VBA macro, ACCPAC Advantage Series 5.1A, ALL modules latest Service Packs
Here's the non-working code:
Dim rptObj As ACCPACXAPILib.xapiReport
Set rptObj = CreateObject("ACCPAC.xapiReport"
rptObj.Select Session2, "PORCP01[PORCP01.RPT]", ""
rptObj.PrintDestination = PD_PREVIEW
rptObj.SetParam "RCPFROM", RCPNumber
rptObj.SetParam "RCPTO", RCPNumber
rptObj.SetParam "QTYDEC", "0"
rptObj.SetParam "PRINTED", "1"
rptObj.PrintReport 1
'Session2 = some xApi session
'RCPNumber= PO Receipt number (ex.: RCP000021)
Thanx for ANY help on that !
-JP
The COMAPI report printing class works fine.
When I use the xApi report printing class in a PD_PREVIEW mode it always prompt me an Email window (like if I was using the PD_EMAIL mode)
Every other mode works fine but the PD_PREVIEW mode seems to have a bug..
Is this a known ACCPAC issue ?
I'm using a VBA macro, ACCPAC Advantage Series 5.1A, ALL modules latest Service Packs
Here's the non-working code:
Dim rptObj As ACCPACXAPILib.xapiReport
Set rptObj = CreateObject("ACCPAC.xapiReport"
rptObj.Select Session2, "PORCP01[PORCP01.RPT]", ""
rptObj.PrintDestination = PD_PREVIEW
rptObj.SetParam "RCPFROM", RCPNumber
rptObj.SetParam "RCPTO", RCPNumber
rptObj.SetParam "QTYDEC", "0"
rptObj.SetParam "PRINTED", "1"
rptObj.PrintReport 1
'Session2 = some xApi session
'RCPNumber= PO Receipt number (ex.: RCP000021)
Thanx for ANY help on that !
-JP