>>Is it possible to programmatically select the destination printer for a VFP report at run-time?
>>
>>In particulary :
>>
>>1 when the reports are being distributed in a run-time?
>>
>>2 when different reports need to go to different physical printers?
>>
>>3 when different reports need to use the same printer but use different page layouts (port. Landscape)?
>>
>>
>>Thanks
>>
>>
>>
>>Jon Nelson
>
>I probably have similar situation: VFP system generates multiple reports which should be printed in different locations. Therefore I use
>REPORT FORM ... TO FILE ...
>applying some name conventions indicating file destination. Then I use COPY FILE command to move files to different printers. Surely, it should be tested carefully for each particular printer. IMHO, report frx file (and corresponding print file) carries page layout, so you shouldn't worry about this.
I set up my customers printers with unique names for reports or forms and then set up the correct paper size. I then call the printers in code with SET PRINTER TO NAME . This has been especially useful with custom paper sizes. One thing to watch for is if you go into the report to edit it and your current printer is set to a different paper size that is what will be stored in the frx file.
Ian
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement