English
Source / code snippets

Druckausgabe Landscape

 

CompileMarkSeparation
XProfan Querformat - Druckausgabe von Andreas Miethe
##################
 $H windows.ph
DEF Get_STDPrinter(1) Substr$(ReadIni$(WIN.INI,Windows,Device),@&(1),,)
DEF OpenPrinter(3) !WINSPOOL.DRV,OpenPrinterA
DEF ClosePrinter(1) !WINSPOOL.DRV,ClosePrinter
DEF DocumentProperties(6) ! WINSPOOL.DRV,DocumentPropertiesA
CLS
Declare STDPrinterName$
STDPrinterName$ = Get_STDPrinter(1)name des Standard-Druckers ermitteln
Declare PrinterHandle&
OpenPrinter(Addr(STDPrinterName$),Addr(PrinterHandle&),0)PrinterHandle ermitteln
Declare BufferSize&,DevIn#
BufferSize& = DocumentProperties(%hwnd,PrinterHandle&,Addr(STDPrinterName$),0,0,0)Buffergroes se fuer Devmode-Struktur ermitteln
Dim DevIn#,BufferSize&
DocumentProperties(0,PrinterHandle&,Addr(STDPrinterName$),DevIn#,0,$13)Devmode- Struktur fuellen
ClosePrinter(PrinterHandle&)Printerhandle wird nicht mehr benoetigt
Declare PrinterDC&
Long DevIn#,44 = 2Orientation auf Querdruck setzen
PrinterDC& = ~CreateDC(WINSPOOL,Addr(STDPrinterName$),0,DevIn#)Drucke-Device-Context
Docinfo-Struktur anlegen und fuellen
Declare DocInf#,Docname$
Dim DocInf#,12
Long DocInf#,0 = 12
Docname$ = Mein Dokument
Long DocInf#,4 = Addr(Docname$)
Long DocInf#,8 = 0
Druckausgabe per API

If ~StartDoc(PrinterDC&,DocInf#) > 0

    If ~StartPage(PrinterDC&) > 0

        ~TextOut(PrinterDC&,60,70,Querdruck,9)
        ~EndPage(PrinterDC&)
        ~EndDoc(PrinterDC&)

    Endif

Endif

Print Fertig mit drucken
waitinput
Dispose DevIn#
Dispose DocInf#
END
 
07/04/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

2.607 Views

Untitledvor 0 min.
Uwe Starke11/17/23
Muemmelmann09/24/14
Untitled04/03/12
iF07/07/11
More...

Themeninformationen

this Topic has 1 subscriber:

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