Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble switching printers
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00841753
Message ID:
00841819
Views:
16
>Can you just add PROMPT to your report command (REPORT FORM xxx TO PRINTER PROMPT) and let the user select the printer all the time?
>
>Another suggestion .. make sure you strip out the printer-specific code in the TAG, TAG2, and EXPR field of the first record in the FRX. This may cause problems and override any selection you try to make.
>

Thanks for the suggestions. No, PROMPT is not an option because most of this stuff runs in an automated mode. A lengthy batch of steps is launched each night, including reports. The operator kicks it off and should not have to interact with it after that.

I tried clearing TAG, TAG2, and EXPR in the first record of the FRX. This did not change the behavior; everything still prints to the physical printer. In addition, the report I am testing with changed from landscape mode to portrait mode, which means some columns get chopped off. When I set it to landscape again in the Print Setup dialog, the printer name gets pulled back into the TAG field.

Does the code I posted look correct for what I am trying to do? Do I maybe need to do a SET PRINTER TO (with no parameters) to switch printers dynamically like that?

I know VFP reports have been berry, berry good to you but I hate the darned things <g>.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform