English
Source / code snippets

Align printer check Hochformatquerformat

 

CompileMarkSeparation
07/03/04  
 




Michael
Dell

CompileMarkSeparation
**** ChkPrnForm.inc - Abgeleitet aus einem Beispiel von Andreas Miethe ****
Def GDC(2) !GDI32,GetDeviceCaps
Def DDC(1) !GDI32,DeleteDC
Def CIC(4) !gdi32.dll,CreateICA
Def GSP(0) SubStr$(ReadIni$(WIN.INI,Windows,Device),1,,)

Proc ChkPrnForm

    Declare DDC&,Drucker$,hqForm&
    Drucker$ = GSP()
    DDC& = CIC(0,ADDR(Drucker$),0,0)

    If DDC&

        Case (Mul(GDC(DDC&,6),10) > Mul(GDC(DDC&,4),10)): hqForm& = 0   Hochformat
        Case (Mul(GDC(DDC&,6),10) < Mul(GDC(DDC&,4),10)): hqForm& = 1   Querformat
        DDC(DDC&)

    EndIf

    Return hqForm&

EndProc

***** Beispiel *****

IfNot ChkPrnForm()

    MessageBox(Hochformat,Druckformat,0)

Else

    MessageBox(Querformat,Druckformat,0)

EndIf

End
***** Beispiel *****

Greeting

Michael
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
07/03/04  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.335 Views

Untitledvor 0 min.
GDL03/26/16
Oliver Hahn07/18/12
Julian Schmidt08/23/11
iF08/19/11
More...

Themeninformationen

this Topic has 2 subscriber:

Michael Dell (1x)
unbekannt (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie