realbasic-nug.fr
[Top] [All Lists]

Re: Imprimer sous tous les angles ...

To: REALbasic French NUG <realbasic-nug dot fr at lists dot realsoftware dot com>
Subject: Re: Imprimer sous tous les angles ...
From: Eric Pousse <eric at adx-online dot com>
Date: Mon, 11 Dec 2006 08:47:10 +0100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug dot fr at lists dot realsoftware dot com
References: <75600F84-2168-4C1C-951F-007F8EE47C03 at wanadoo dot fr> <C186A0A2-4E42-491C-89B4-8F4073D940F1 at adx-online dot com> <62DC1504-2D8D-492A-8D70-B1DC8854D911 at wanadoo dot fr> <B3E4C0BF-3665-494D-93ED-01FD77194DEF at adx-online dot com> <606AE065-FEC5-45D2-B80F-1A65971E84C9 at wanadoo dot fr> <C22FA7DA-9702-4423-920F-65A465B568AF at adx-online dot com> <A2F5340D-9FE9-4EBA-9D83-2E472CEEAE0F at wanadoo dot fr> <D3C61D9B-BC8A-4E37-BC98-E9DEF24A45EB at adx-online dot com>
Désolé, je n'avais pas bien regardé votre code mais c'est normal,
maxHorizontalResolution est égal à -1
ce sont HorizontalResolution et VerticalResolution qui changent

donc comme dans mon code initial il faut écrire :

Coef_Zoom = MyPSetup.HorizontalResolution / 72

Vous avez sans doute écrit
Coef_Zoom = MyPSetup.maxHorizontalResolution / 72

et il faut bien mettre :
MyPSetup.MaxHorizontalResolution = -1
MyPSetup.MaxVerticalResolution = -1
juste avant
MyPage = OpenPrinterDialog(MyPSetup)


Voilà.

Eric Pousse

PB G4 15", 1.67GHz, OSX 10.4.7, RB 5.5.5 + 2006
http://www.realcadd.com/


Le 11 déc. 06 à 02:48, Thierry Nauze a écrit :

Bonjour,

au réveil :

Le 11 déc. 06 à 01:22, Eric Pousse a écrit :

Bonsoir,

Essayez en mettant

p.MaxHorizontalResolution=-1
p.MaxVerticalResolution=-1

après

If p.PageSetupDialog then


Bonne nuit !

Rien ne marche.
Quel que soit l'endroit où je place ces deux lignes, j'obtiens systématiquement -1 :


p.MaxHorizontalResolution=-1
p.MaxVerticalResolution=-1
If p.PageSetupDialog then
    g=OpenPrinterDialog(p)
    msgBox str(p.maxHorizontalResolution)
    ...
end


If p.PageSetupDialog then
    p.MaxHorizontalResolution=-1
    p.MaxVerticalResolution=-1
    g=OpenPrinterDialog(p)
    msgBox str(p.maxHorizontalResolution)
    ...
end


If p.PageSetupDialog then
    g=OpenPrinterDialog(p)
    p.MaxHorizontalResolution=-1
    p.MaxVerticalResolution=-1
    msgBox str(p.maxHorizontalResolution)
    ...
end


Mystères de l'informatique !!!
J'ai lu et relu l'aide : votre solution me semble la bonne.
Mais pourquoi ça ne marche pas chez-moi ?
Je vais encore faire des essais : il faut bien trouver une solution car avec un 'zoom' correct l'impression peut être correcte.


Merci

@+

--
Thierry NAUZE        Saint-Denis de la Réunion








<Prev in Thread] Current Thread [Next in Thread>