Search  Site map
Reporting Tools for Developers
 

Demo tour

Demo Tour previous page234Next  >>

Basic sample

Producing a document using All In-The-Box is quite easy. The basic steps are the following:

  1. Select an output channel (display, printer, PDF or image) by assigning the Channel property.

  2. Indicate an appropriate destination: depending on the output channel, it may be a control of your application, a printer name or a file name.

  3. Start the document by calling the BeginDoc method.

  4. Build up the document contents using various methods: write text, draw graphics, insert images, set hyperlinks, etc.

  5. Complete the document by calling the EndDoc method.

A minimal example is displayed on the right. Naturally, All In-The-Box is capable of doing much more. The 180 methods, properties and events of the programming interface give all the power you need to define sophisticated documents.

Once the document is completed, you can output it to other channels: you can print it, save it to a PDF file or to a set of image files.

 

Example
Programming language: Visual Basic

With AllBox1
    .Channel = chDisplay
    .DisplayHostHandle = MyControl.Handle
    .BeginDoc
    .TextOut 200, 300, "Hello world !"
    .EndDoc
End With

Move mouse over blue highlighted words to get comments.
Generated document is displayed in the viewer below.

 


Copyright © 1995-2008, Synactis Write to Webmaster