Intro

Top  Previous  Next

    This class was created to help Xbase++ users in creating reports with the ability to preview on screen, print and convert to PDF from Xbase++ applications. This solution can be deployed to customer installations without further steps, like PDF printer drivers, and so on.

    This is a very simple class with very little effort in terms of programming, of course implementing it will require code changes, but the benefits are worth it.

    An example of a simple program would be :

    PROCEDURE MAIN

Grapdf := xbpGraPdf():New()

 

// Creates the GraPDF object

Grapdf:Create( oPrinter )

 

// Tell the class where should the report be printed

Grapdf:Page()        

 

// Page size

Grapdf:Font( '10.Courier New' )

 

// Choose font

Grapdf:StringAt( {10, 10}, "Hello World !" )

 

// write text

Grapdf:Preview()

// Preview the report

    return