Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change printer in report designer
Message
De
30/01/2013 03:00:24
 
 
À
30/01/2013 02:31:35
Mk Sharma
Shrishti Solutions
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01564630
Message ID:
01564634
Vues:
44
>I want to print report in "8x6" paper, if i remove "Printer Envirinment" and select another printer with GetPrinter() then my report printed in "Letter" size on selected printer. ?

To be honest, I don't remember. I usually report to A4, it's been ages since I reported to something else. But I don't recall ever having had any problems with other sizes, since the form's size is stored in the FRX, as far as I remember. Cathy Pountney has written some interesting articles about how to work with the report writer, you will find these articles on Google.

>Are you using Getprinter() to select another printer ?

In my applications I have a table with the following columns, plus a few more:
1. The "user friendly" report name
2. The "real" name of the frx/lbx
3. A logic report/label field, .F. = report, .T. = label
4. The name of the default printer, as seen in Getprinter. 'X' means call getprinter(). '@'means create an PDF and email it to the user.
5. The number of copies
6. The user initials, blank means default

I update this table with a special printer/report setup form. Each user has this form available, where a new record is created whenever a user needs/wants a special printer/report combination, a non default number of copies or some other specific value. When no record for a given report exists with a matching user name, the default (blank user field) is used.

When a report is run, it always goes through a reporting class where the necessary values are picked up from this table, and treated accordingly.

>Warm regards,
>mk.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform