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
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