Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report form to file going to printer
Message
From
16/08/2005 06:29:10
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01041256
Message ID:
01041259
Views:
19
Have you tried another name for the file? NULL is a reserved word, maybe it causes problem.

>Could you help me with this? Please! :-)
>
>I'm upgrading from VFP8 to VFP9 and I'm working on our printing routines.
>
>We have a noOutput() method used to run a report, with the only purpose to calculate the number of pages.
>We can't just use the _PAGETOTAL var, because we are chaining many reports.
>
>First problem: the following command sends the output to the default printer.
>report form (cNomeReport) noconsole to file null.txt
>
>
>I've tried almost every combination of commands before the "report form..."
>
>set printer off
>set printer to file null.txt
>etc...
>
>What is driving me crazy, is that the code we used under VFP6, 7 and 8 worked for years.. :-(
>
>Another strange behavior is that if I remove the "to file.." clause from the "report form" command..
>report form (cNomeReport) noconsole
>
>
>..it doesn't go to the printer, but the _pagetotal is always 1.
>Have you ever experienced such problems?
>
>Sorry for asking help for this again.. but I'm surely missing something here.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform