Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom page
Message
De
03/12/2004 10:51:14
 
 
À
03/12/2004 09:10:26
Reza Meamar
Homa Programming Group
Shiraz, Iran
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows '98
Database:
Visual FoxPro
Divers
Thread ID:
00966159
Message ID:
00966731
Vues:
7
>Excuse me.
>i can not understand your message.
>you say that i define two printer with two custom paper size?
>
>
>i have another question.
>i want to know can i define my custom paper size from within my program and can i test that this custom size is exist or no form with in my program?
>
First of all.. One printer (for real, hardware).. Right ?

Two different declarations of printers (on software windows) both point to same port LPT..

In a first one (named for instance MY PRINTER OF SPECIAL FORM 1) you set the custom paper for your special size..

The other printer (named for instance MY PRINTER OF ORDERS) you set the custom paper for your second special size 2..

So at your software you can separate (by task) where we should send the print..

You can do something as:
sele mytable
if  set_printer_point("MY PRINTER OF SPECIAL FORM 1")
    report form ...
else
    wait window "You must to create a printer named MY PRINTER OF SPECIAL FORM 1 for this option" nowait
endif
return

procedure set_printer_point
lparameters cwprinter
nwtot_imp          = APRINTERS(awimpress)
nwimp              = 0
for ipp = 1 to nwtot_imp
    if  upper(cwprinter)$upper(awimpress[ipp,1])
        nwimp      = ipp
        SET PRINTER TO NAME awimpress[ipp,1]
        exit
    endif
endfor
return nwimp > 0
endproc
HTH
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform