General information
Category:
Reports & Report designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only