Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Suppressing Printing in Preview Mode
Message
De
18/01/2001 13:31:20
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00465125
Message ID:
00465274
Vues:
12
>>>>>Try
REPORT FORM YourReport NOCONSOLE PREVIEW IN SCREEN TO FILE NUL
>>>>>instead.
>>>>>
>>>>>That will work.
>>>>>The output is then directed to the nul device which means that there is no output at all.
>>>>>You have to include the IN SCREEN or otherwise IN WINDOW windowname, or otherwise it will error on a missing comma. (probably a small bug in VFP.)
>>>>
>>>>Although the code will produce a preview window, the print feature is still enabled and working.
>>>

>>>Yes,
>>>
>>>but it prints to the NUL device so it will not come out of your printer
>>
>>Not true. I does come out of the printer. Perhaps the NUL device has to be defined first?
>

>Huh
>
>I've just 'printed' some reports using the print button on the print preview toolbar, but none of them came out of my printer.
>
>The NUL device is a virtual device from the operating system.
>In the DOS years you could use it to pipe screen output to it.
>
>Probably it don't work under NT machines
>
>What you can do then is instead of outputting to the NUL device, outputiing to a temporary file. Just replace NUL with yourtempfile.tmp and try again.
>Please let me now if that works.
>Evan asked me to send this as a new FAQ item, so i can use every information you give me.

Just did this:
REPORT FORM c:\temp\report1 NOCONSOLE PREVIEW IN SCREEN TO FILE c:\temp\junk.tmp
It printed to the file and not to the printer. Bear in mind if the file exists, VFP will ask you if you want to overwrite it. I reccommend erasing the file after the routine runs.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform