03-10-20, 04:15 PM
هذا الكود شغال ويقوم بعرض ملف ال pdf لكن اريد استخدم هذا الكود عند عملية البحث سوف تظهر النتائج في الكرد فيو لكن العرض يقوم بعرض اول ملف فقط محفوظ في السجل الاول
كيف لي ان اقوم بمعرفة DgId = e.RowIndex الجديد الذي ظهر في النتائج في الكرد فيو
DgId = e.RowIndex
Dim ff() As Byte = CType(dt.Rows(DgId)(9), Byte())
Dim FPath = Application.StartupPath & "\" & dt.Rows(DgId)(2).ToString() & dt.Rows(DgId)(7).ToString()
Dim FFS As FileStream = New FileStream(FPath, FileMode.Create, FileAccess.Write)
FFS.Write(ff, 0, ff.Length)
FFS.Close()
AxAcroPDF1.src = FPath
كيف لي ان اقوم بمعرفة DgId = e.RowIndex الجديد الذي ظهر في النتائج في الكرد فيو
DgId = e.RowIndex
Dim ff() As Byte = CType(dt.Rows(DgId)(9), Byte())
Dim FPath = Application.StartupPath & "\" & dt.Rows(DgId)(2).ToString() & dt.Rows(DgId)(7).ToString()
Dim FFS As FileStream = New FileStream(FPath, FileMode.Create, FileAccess.Write)
FFS.Write(ff, 0, ff.Length)
FFS.Close()
AxAcroPDF1.src = FPath