for run normal report preview, i use this code:
PUBLIC oPrint
oPrint= CREATEOBJECT("printPreview"
oPrint.SHOW()
REPORT FORM (rp) PREVIEW WINDOW PrintPreview IN WINDOW PrintPreview IF VARTYPE(oPrint) = "O"
oPrint.RELEASE()
ENDIF
DEFINE CLASS printpreview as Form
titlebar = 0
Showwindow = 2 &&Top level
autocenter = .t.
name = "PrintPreview"
height = SYSMETRIC(2) && This will maximize the preview
width = SYSMETRIC(1)&& This will maximize the preview
ENDDEFINE
Now i want create a label preview and use this code:
LABEL FORM (rp) PREVIEW
this code open label preview in scren inside my application. but my form is top level form, and the form is over the preview.
how to have label preview like report preview?
tnx to all
PUBLIC oPrint
oPrint= CREATEOBJECT("printPreview"
oPrint.SHOW()
REPORT FORM (rp) PREVIEW WINDOW PrintPreview IN WINDOW PrintPreview IF VARTYPE(oPrint) = "O"
oPrint.RELEASE()
ENDIF
DEFINE CLASS printpreview as Form
titlebar = 0
Showwindow = 2 &&Top level
autocenter = .t.
name = "PrintPreview"
height = SYSMETRIC(2) && This will maximize the preview
width = SYSMETRIC(1)&& This will maximize the preview
ENDDEFINE
Now i want create a label preview and use this code:
LABEL FORM (rp) PREVIEW
this code open label preview in scren inside my application. but my form is top level form, and the form is over the preview.
how to have label preview like report preview?
tnx to all