Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print Preview SNAFU - VFP5
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00234792
Message ID:
00234840
Views:
20
Hi Don,
Try This :
lnCurrentRecord=RECNO()
REPORT FORM MyReport FOR RECNO()=lnCurrentRecord
It works for me.
BTW which version are you using ?

>One of my users alerted me to this:
>
>I select several records in a temporary cursor, then if the user wants to print, I ask whether they want to print ALL records, or just the single record they are viewing. I issue the command:
>
> REPORT FORM myreport NEXT 1 PREVIEW -or-
> REPORT FORM myreport ALL PREVIEW
>
>Print Preview correctly shows either one record or all records, but when the user prints (via the printer icon on the Print Preview Toolbar), they get ALL the records regardless.
>
>This doesn't happen in the .APP, only in the compiled .EXE version, which is why I didn't notice it in my testing. I was able to work around this by skipping Print Preview and going directly to the printer:
>
> REPORT FORM myreport NEXT 1 TO PRINTER PROMPT NOCONSOLE
>
>but why should I have to do this?
>
>Thanks for any suggestions,
>Don Smith, Indiana University
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform