Tracy Pearson wrote:
> The working syntax brackets ( [ ] ) the file name and path. If there is a
> space in the path, you could get this behavior without them.
>
> Tracy
Ended up routing it through my older code:
LPARAMETERS tcRpt as String, tcCaption as String, tlSkipPreview as
Logical, tlSkipPrompt as Logical
* mjb 01-24-05 using Fred Taylor's idea for showing report inside max
window (courtesy ProFox archives)
LOCAL loFrm as Form, loException as Exception
CLEAR && get rid of any screen echos
TRY
IF !tlSkipPreview THEN
loFrm = CREATEOBJECT("Form")
WITH loFrm
.Caption = IIF(VARTYPE(tcCaption)="C",tcCaption,tcRpt)
.WindowState = 2 && Maximized
.Show()
IF !tlSkipPrompt THEN
REPORT FORM (tcRpt) TO PRINTER PROMPT NOCONSOLE
PREVIEW WINDOW (.Name)
ELSE
REPORT FORM (tcRpt) TO PRINTER NOCONSOLE
PREVIEW WINDOW (.Name)
ENDIF && !tlSkipPrompt
ENDWITH && loFrm
loFrm.Release()
ELSE && no preview window (form)
IF !tlSkipPrompt THEN
REPORT FORM (tcRpt) TO PRINTER PROMPT NOCONSOLE
ELSE
REPORT FORM (tcRpt) TO PRINTER NOCONSOLE
ENDIF && !tlSkipPrompt
ENDIF && !tlSkipPreview
CATCH TO loException
MESSAGEBOX(loException.Message,16,"Problem generating report.")
ENDTRY
I was trying to use the ZOOM WINDOW mod you had suggested recently but
couldn't get it to work (for now). Oh well.
Thanks, guys. Have a nice weekend!
--Mike
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.