Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report - defaullt printer settings
Message
De
14/06/2005 02:25:13
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01022570
Message ID:
01023000
Vues:
8
Hi Colin,
In order to do easily what Cathy adviced you, (clean up frx)
you can have look at my XDIR tool here in downloads.

One of class implementations is mass frx cleanup.

So using this tool you can clean up ALL frx found along specified path
or entire hard disc drive by issuing one function call ;

=xclean_reports('C:\')

Directory scanning object calls plain VFP function to do frx cleanup
which you can amend to do it way you want it.

In it's current state, from list of frx default setting found in
FrxTable.expr field, function would live only folowing ;
ORIENTATION=0
PAPERSIZE=164
preserving report orientation, and page size only.

This might be as per Cathy advice exactly what u need.

Rgds+++
Sergio


>Cathy
>
>Sorry 1 last question
>
>If I look at the fields in expr this is my interpretation of what you have said - am I correct?
>
>DRIVER=winspool
>Clear - DEVICE=\\EMAIL\DAILY OKI
>OUTPUT=LPT1:
>ORIENTATION=0
>Clear - PAPERSIZE=164
>Clear - ASCII=164
>COPIES=1
>Clear - DEFAULTSOURCE=15
>PRINTQUALITY=120
>COLOR=1
>YRESOLUTION=72
>TTOPTION=2
>COLLATE=0
>
>Thanks
>
>Colin
>
>
>>You need to get rid of the printer environment information that is stored with the report. To do that, open the report file as a table browse it. In the first record, clear the TAG and TAG2 fields. Also in the first record there is a field called EXPR. Don't clear it all -- but edit the field and clear the printer information. You still want to retain things like orientation.
>>
>>Note that you will have to do this EVERY time you make a change to the report. Earlier versions of VFP always save the printer environment. Starting with VFP 8, you can turn that "feature" off.
>>
>>Cathy
>>
>>
>>
>>>Hi
>>>
>>>I am printing to 1 of 2 dot matrix printers both of which have a default paper size of Lexmark. The machine I am printing from also has a default paper size of Lexmark
>>>
>>>myreport="c:\mailflight\blank1.frx"
>>>report FORM (myreport) TO PRINTER prompt noconsole
>>>
>>>brings up the printer dialogue box - I select the appropriate printer only to find that the default paper size is Letter - I can of course alter this manually
>>>
>>>I can also alter blank1.frx to have a default printer of 1 of the 2 printers - then the correct paper size comes up in the printer dialogue box PROVIDING I select that printer
>>>
>>>If I select the second printer then I am again presented with Letter
>>>
>>>How so I change this so that the correct paper size is presented irrespective of which of the 2 printers I choose?
>>>
>>>Thanks
>>>
>>>Colin
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform