|
| Crystal location table |
 |
Sun, 1 Jul 2007 11:38:59 +0200 |
Hi,
i use Dbase witn CR8 with RDC; my problem is that then into myreport there
are more instance to the same table (with different alias) RDC give me error
'impossible open the table xxx into position yyyy'.
There is a solution..
My code is:
f = new previewForm()
f.mdi=.f.
ax = f.activex1.nativeobject
f.crxApp = new OLEAutoClient("CrystalRuntime.Application")
f.crxRep = f.CrxApp.OpenReport('myreport')
f.crxRep.PrinterSetup(false)
f.crxrep.DiscardSavedData()
f.crxrep.displayprogressdialog = false
for i = 1 to f.crxrep.database.tables.count
oTable = f.crxrep.database.tables(i)
if oTable.dataBaseType = 1
oTable.Location = wdir+oTable.name
endif
endfor
ax.ReportSource= f.crxRep
f.ActiveX1.NativeObject.EnableExportButton= .T.
f.ActiveX1.NativeObject.DisplayGroupTree= .F.
f.ActiveX1.NativeObject.ViewReport()
f.readmodal()
Thank's for help
Andrea
|
| Post Reply
|
| Re: Crystal location table |
 |
Mon, 2 Jul 2007 00:50:24 -0400 |
In article <f677g0.24s.1@news.alldbase.com>, aguastini@libero.it says...
> Hi,
> i use Dbase witn CR8 with RDC; my problem is that then into myreport there
> are more instance to the same table (with different alias) RDC give me
error
> 'impossible open the table xxx into position yyyy'.
> There is a solution..
<snipped code>
Andrea,
It is good to hear you found a solution. Thank-you for sharing it with
us. :-)
--
Geoff Wass [dBVIPS]
Montréal, Québec, Canada
.|.|.| dBASE info at http://geocities.com/geoff_wass |.|.|.
.|.|.| ---------------------------------------------------------- |.|.|.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|