[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

  Besides the sophisticated FiveWin Report Engine, FiveWin offers you
  RAD (rapid application development) techniques to quickly prototype
  your printouts:

   * Generating a full report from the current workarea:

     Just call the function Report() and you will get a full paged
     report automatically generated from the current workarea!

   * Generating an automatic report from any Browse !!!:

     If you do <oBrw>:Report() where <oBrw> is a reference to your
     browse, FiveWin will generate a full report with the same contents
     of your browse. So, the easiest way to implement a report in your
     browse is placing a bitmap button on your DialogBox with the
     action <oBrw>:Report().

   * Making a printer HardCopy of any window or control !!!:

     If you have a Dialog and you want to obtain a printout of it,
     the easiest way is just doing: <oDlg>:HardCopy( <nZoom> ) where
     <oDlg> is your Dialog object and <nZoom> is a scale factor -
     a value of 3 is normally recommended to obtain natural dimensions-
     You can use a bitmap instead of the Dialog, or any window or
     control!

   Combining these techniques you can very quickly prototype your
   first application printouts. Don't forget them!

   Remember to use these techniques on the first stages of your
   application.

   We want to thank you our friend Ignacio Ortiz de Zu.iga for his excellent
   work and contributions to the FiveWin Report engine,

   Thanks Ignacio


Fur freie Ausgaben von Text oder Bitmaps benutzt Du am besten die
PRINTER-Klasse. Beispiele findest Du unter \SAMPLES\TESTPRN...

Einzige Fallgrube beim Ausgeben an einer bestimmte Position ist die
pixelorientierte Koordinatendarstellung. Wenn Du die Position in Millimetern
handeln willst, must Du die Pixel umrechnen. Das geht ungefahr so:

PRINT oPrn NAME "Druckjob" PREVIEW
     Fh := oPrn:nHorzRes()/oPrn:nHorzSize()  //Horizontaler Korrekturfaktor
     Fv := oPrn:nVertRes()/oPrn:nVertSize()
     DEFINE FONT F_ARIAL_08 NAME "ARIAL" SIZE 0,-8 OF oPrn
     PAGE
         oPrn:Say(50*Fv, 50*Fh, "Das ist ein Test", F_ARIAL_08)
    ENDPAGE
ENDPRINT

So stimmt die Auasgabe nun auf allen Druckern, egal welcher  Auflosung!



This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson