Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print Preview
Message
From
20/06/2002 13:04:41
Jonathan Hayton
Cbl Business Solutions Limited
Leeds, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00668083
Message ID:
00670713
Views:
22
FYI....

Nick, desperate times require desperate measures, my fundamental problem was that i needed to commit three reports back to back so once one previewed the next should preview, this meant that Sebas solution didn't work because putting REPORT myRep TO PRINTER PREVIEW NOWAIT just went and ran the other reports so I've had to place a the following code;
IIF(WEXIST("Print Preview"),fPreview75,.f.) to the report header on entry section

***************************************
FUNCTION fPreview75
***************************************
IF glRunJustOnce = .T.
MOUSE CLICK AT 20,170 PIXELS WINDOW "print preview"
KEYBOARD "{HOME}"+REPLICATE( "{DNARROW}", 1 ) + "{ENTER}" PLAIN CLEAR
glRunJustOnce = .F.
ENDIF

This seems to work, but if you know a neater solution or simply want to berate me for using noddy code hidden in reports the please feel free.

Once again thanks for your help ... All the best
Jonathan
Previous
Reply
Map
View

Click here to load this message in the networking platform