Hi Robin,
but how do I get the primary table name if the report is based on a set?
Not sure that why do you need the primary table in order to show the report list?
Code:
'Report Search Option
vSearch ="customer"
if vSearch ="Customer" then
tblist ="customer.dbf"
'else if vSearch ="other"
'tblist ="other table dbf name
end if
a_repname = a5enum("report",alltrim(tblist))
'It will be focused on the preview, the preview will be on top of the your dialog.
Code:
if a_dlg_button = "ev_Prev" then
if vfltr = "" then
vfltr = ".t."
end if
:report.preview(repname,vfltr,"",.t.,.f.)
'Tln("Preview Report",repname,"USER")
msgbox("just exist from preview") 'I gave up that How to find the "Preview" is opened or closed stage.
end if
Bookmarks