Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Have a Top-Level preview label report with a Top-Level application

Reports

Have a Top-Level preview label report with a Top-Level application

by  hyonos  Posted    (Edited  )
LABEL FROM have no documented IN WINDOW clause

see faq: faq184-2490

then:

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


PUBLIC oPrint
oPrint= CREATEOBJECT("printPreview")
oPrint.SHOW()
[color red]LABEL FROM COUNTRY.LBX PREVIEW IN WINDOW PrintPreview [/color]
IF VARTYPE(oPrint) = "O"
oPrint.RELEASE()
ENDIF

i want tnx Stuart D. for suggestion
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top