|
V32ShowBmp()
|
| Displays the bitmap into a window with
printing facility. |
|
Syntax
|
| V32ShowBmp( < cFileBmp > ) |
|
Arguments
|
| < cFileBmp > is a character string
containing fully qualified file name with drive, path and extension
representing a Bitmap ( .Bmp ) file. If this parameter is ommitted or
empty or the file could not been located, server does nothing. |
|
Returns
|
| NIL |
|
Description
|
| V32ShowBmp function displays the
designated bitmap into a separate dialog which has a button to print the
bitmap on the asked printer. The dialog is resizable and bitmap display
expands accordingly. Remarkable is this that printing takes care of the
visual proportion of the bitmap. Width of the default paper is taken as
the base and height is determined proportionately. Printer setup can be
set for landscape printing. Default is portrait printing.
Please note that the dialog is modal to application window and hence
you need to close the dialog to return the application. |
|
Usage
|
| local cFile :=
CurDrive()+':\'+CurDir()+'\Vouch32.bmp'
V32ShowBmp( cFile ) |
|
Tips
|
| The function can be tied with a function
key and user can be presented to view the bitmap the reference of which is
kept in a field in the underlying database.
Or, a menu or a browser can be presented to select a bitmap file and
then this function can be invoked with reference to that bitmap file.
In Vouch I have tied F12 key to view the relevant bitmap the references
of which are stored in a predefined field of underlying module. If no
predefined field is defined for bitmap references, nothing happens |