Skip to Content
Former Member
Aug 20, 2007 at 01:38 PM

error 717 Tables[0].SetDataPointer <PESetNthTablesPrivateInfo>


Post Author: mayusod

CA Forum: Data Connectivity and SQL

Delphi 7

Crystal Report XI

1 Component TCrpe Name CRReport

1 Conponent TCrpeDS Name DSCRReport

1 Component TADOQuery Name QReport

procedure TFormOrderPresentation.btnPrintClick(Sender: TObject);begin QReport.Close; QReport.SQL.Text:='select ORDER, DESCRIPTION from ORDER_PRESENTATION'; QReport.Open; DSCRReport.DataSet:=QReport; CRReport.CloseJob; CRReport.ReportName:='C:\Report\OrderPresentation.rpt'; CRReport.DiscardSavedData; CRReport.Subreports&#91;0&#93;; CRReport.Tables&#91;0&#93;.DataPointer:=DSCRReport.DataPointer; //error 717 in this line CRReport.Show;end;