i have form1 that opens form2. form2 has a print button that opens form3. and in form3 i have this in ok button,
Code:
case thisform.opgreportoutput.value=1
thisform.hide()
oform = _screen.activeform
oform.hide()
set classlib to prev additive
opreviewfrm=createobject("PrintPreview")
release classlib prev
keyboard "{ctrl+f10}"
report form &creport environment noconsole preview in window printpreview
opreviewfrm=.null.
oform.show()
thisform.show()
it works perfectly fine when i try to run the form in the command window. all forms are the visible except for the printpreview.
if i run the exe, form1 is on top of the printpreview.
what's wrong?