Walter Meester
HoogkarspelNetherlands
General information
Category:
Reports & Report designer
thats what I will do then.
I am trying to control the crystal report preview window location and size
with no luck. also the preview appears for a a half second then disappears.
could you tell me what I am doing wrong.
DECLARE INTEGER GetActiveWindow IN Win32API
LOCAL lnhwnd
lnhwnd = GetActiveWindow()
tcrptname="C:\Seagate Software\Crystal Reports\womasbydept.rpt"
reportapp=createobject("Crystal.CRPE.Application")
orpt = reportapp.OpenReport(tcRPTName)
orpt.PrintWindowOptions.HasPrintSetupButton =.t.
orpt.PrintWindowOptions.HasSearchButton =.t.
orpt.PrintWindowOptions.HasexportButton =.t.
orpt.PrintWindowOptions.HascancelButton =.t.
orpt.PrintWindowOptions.hasZoomControl=.t.
orpt.Preview("Title", 12, 23, 624, 643,2,lnhwnd)
*orpt.Preview
Ken Paulson
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only