>Hi Lutz,
>
>thanks a lot. I do not store printer-informatin in my reports as they are running on all kind of
>different machines with different printers attached.
>
>Best regards
>
>Thomas
Thomas,
You misunderstand the approach.
The report itself, the one to print, has no printer information. Never in this solution.
The code provided by my previous message
uses report technique to gather printer information from user input
at runtime. Then you have to store it somewhere - depending on your needs, for me it's per user and machine.
Later it
uses similar report technique to set VFP printer to the printer data stored (that is all printer settings like paper tray and so on)
at runtime.
It prints the report and reset VFP to it's previously set printer.
All the frx stuff in my prev message is only to gather, set and reset printer information.
update:
PM me if you like, I guess this goes much better in German
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]