Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Overlaying an insurance form onto a laser printed report
Message
From
24/07/1998 06:03:19
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00112699
Message ID:
00120898
Views:
47
>>
>>Path a textbox in your footer somewhere. For the report expression, call the UDF. The UDF sends the macro to the currentlyelected printer by the ???. The UDF returns a null string, resulting in nothing other than the macro being sent. You can use the TO PRINT clause to send output directly to the printer.
>>
>>>Marcus.
>
>One last question. I guess I should have said TO PRINT PROMPT NOCONSOLE. Do your reports have the driver screen come up before printing, or do you go straight to the printer. This seems to be my stumbling block. I can get it to work fine until I bring up the prompt (printer driver). It appears that the driver turns off the overlay macro, while not deleting it from memory.
>

I don't use the PROMPT clause, because it's pointless to do so for our app - invoices and the like go to specific network print queues which are serviced by several printers (all of which have already been initialized with the macro set.

More to the point, your problem is your reference to the macro. Realize that PCL is page-oriented; you don't need to 'turn on' an overlay macro and rely on it remaning active to print automagically, just fire it once for each page with &fy3X. This way, different pages can reference different macro overlays (or no overlay).
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform