home *** CD-ROM | disk | FTP | other *** search
- '------------------------'------------------------'------------------------
- ' Test Formular
- Include "DruckNT.int"
- '------------------------'------------------------'------------------------
-
- declare external Get(s as String, n as Numeric) as String
- declare external Is(s as String, n as Numeric) as Bool
- declare external GetNumeric(s as String, n as Numeric) as Numeric
- declare external GetInt(s as String, n as Numeric) as Numeric
- declare external GetDate(s as String, n as Numeric) as Numeric
- declare external GetTime(s as String, n as Numeric) as Numeric
- declare external FirstRecord(s as String) as Bool
- declare external NextRecord(s as String) as Bool
- '-------------------'-------------------DESCRIPTION'-------------------'-------------------
- description form_description as "Lexware Registrierungseditor"
- description form_code as "LRegEdit"
-
- description form_version as "2.08.01.0306"
- description form_target as "Printer"
- description page_orientation as PAGE_LANDSCAPE
-
- '-------------------'-------------------MARGINS'-------------------'-------------------
- SetHeaderMargin ( 200, 200, 200, 150 ) ' left top right height
- SetBodyMargin ( 200, 350, 200, 150 ) ' left top right bottom
- SetFooterMargin ( 200, 200, 200, 200 ) ' left top right height
-
- '-------------------'-------------------KONSTANTEN'-------------------'-------------------
-
- '-------------------'-------------------VARIABLEN'-------------------'-------------------
- Dim font as FontType
- font = CreateFont("Arial",12,FONT_NORMAL,COLOR_BLACK)
- Dim fon as FontType
- fon = CreateFont("Arial",10,FONT_NORMAL,COLOR_BLACK)
-
- SetWordWrap(TRUE)
- '-------------------'-------------------FUNCTIONS'-------------------'-------------------
-
- 'Footer Bereich
- function OnPrintFooter()
- RemoveAllTabs()
- SetTabs("L C R")
- SetFont("Arial", 8, FONT_NORMAL, COLOR_BLACK)
- 'DrawLineExt (0, 20, 1700, 20)
- DrawHorzLine (True)
- LF
- TL( "⌐ Lexware GmbH & Co. KG 2001 - 2002\t" + FormatDate("%d.%m.%Y", Now()) + "\tSeite " + PAGENUMBER + " " +GetFormFileName())
- RemoveAllTabs()
- end function
-
- 'Header Bereich
- function OnPrintHeader()
- RemoveAllTabs()
- SetTabs("L C R")
- SetFont("Arial", 14, FONT_BOLD, COLOR_BLACK)
- TL( "Lexware Registrierungseditor")
- SetPen (5, PEN_SOLID, COLOR_BLACK)
- ' DrawLineExt (0, 60, 1700, 60)
- DrawHorzLine (True)
- RemoveAllTabs()
- end function
-
-
- '---------------'---------------EVENT HANDLER'---------------'---------------
- SetEventHandler(EVENT_PRINT_FOOTER, OnPrintFooter)
- SetEventHandler(EVENT_PRINT_HEADER, OnPrintHeader)
-
-
- '---------------'---------------MAIN'---------------'---------------
- Dim bG as Bool
- Dim wert as STRING
-
-
-
- SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
- RemoveAllTabs()
- SetTabs(" L L70 L400 L800 L900")
- SetWordWrap(TRUE)
- TL("\tSchlⁿssel\tName\tWert")
-
- SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
- 'DrawLineExt (0, 45, 1700, 45)
- DrawHorzLine (True)
-
-
- LF
-
- bG = FirstRecord("A")
- while bG do
- wert = Get("A",1)
- if (wert <>"") then
- SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
- LF
- TL (wert)
- SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
- else
- TL("\t" + Get("A",2) + "\t" + Get("A",3) + "\t" + Get("A",4))
- end if
- bG = NextRecord("A")
- end while
- LF
-
-
-