PDA

View Full Version : گزارش از database در کریستال



maisam57
شنبه 04 اسفند 1386, 14:39 عصر
سلام آقا اگه کسی میتونه کمک کنه
تمام کامپوننتها کریستال رو توی دلفی نصب کردم


AdoQuery1.ConnectionString :=
'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=DBDemos.mdb;Persist Security Info=False';
AdoQuery1.SQL.Add('SELECT * FROM Employee');
AdoQuery1.CursorType := ctStatic;
AdoQuery1.LockType := ltReadOnly;
AdoQuery1.Open;
crReport.Database.SetDataSource(AdoQuery1.Recordse t, 3, 1);
crReport := Application1.OpenReport('report1.rpt', crOpenReportByTempCopy);
crReport.DiscardSavedData;
CRViewer1.EnableExportButton := true;
cRViewer1.ReportSource := crReport;
CRViewer1.ViewReport;

وقتی اجرا میکنم این پیغام رومیده
access violation at address 004b1ebf in module 'project1.exe' read of address 000000000

amin_alexi
شنبه 25 اسفند 1386, 08:01 صبح
من کار کردم منم از این Error ها زیاد واسم پیش اومده ...
1 . از چه ورژنی استفاده می کنی ؟
2 . کدوم DLL ها رو نصب کردی?
3 . روی کدوم خط Error میده ؟
4 . می خوای فقط Preview بگیری ؟