Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing multiple copies of a report programmatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00695143
Message ID:
00695384
Vues:
38
Yuri,

I can't name any specific printers other than those that I have like dot matrix ones and a couple of older inkjets. What I was providing was the information as to how can tell how many COPIES if more than one a printer's driver will support using the DEVMODE settings for the number of copies to print. The TAG2 information in the first record of an FRX file is a copy of the DEVMODE structure for the exact printer that the report was set up with. The DEVMODE structure varies in size with each printer. Therefore it is not a fixed memory block because of private printer information. However, the header part of the DEVMODE structure has defined values for items such as YRESOLUTION, PRINTQUALITY, ORIENTATION, COPIES, COLOR, etc.

Here is a link to find out more about the DEVMODE Structure:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspol_8nle.asp

And DocumentProperties:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspol_7k1f.asp


This information can be updated or changed right before the printing of each page in a document between the StartDoc and EndDoc API calls. This allows you to on the fly change the page Orientation, Resolution, turn on/off Color etc.

You use the DocumentProperties API call to retrieve the DEVMODE structure information and set it again. You must first however retrieve the SIZE of the BUFFER that you need to create to hold the DEVMODE structure before retriving this. You can do all of this in VFP code. The problem is that you don't have a very reliable way to change this information in the middle of a VFP Report.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform