Hello,
some of my users have problems with the preview window from the HbPrinter lib. They get a message that there is no appropiate app available. Is this part dependence on some app, os is there something missing in my build.
Here is the code i use when showing a preview window:
INIT PRINTSYS
GET PRINTERS TO aprinters
IF lVoorbeeld
IF lPrinterVoorbeeld
SELECT BY DIALOG PREVIEW
ELSE
SELECT DEFAULT PREVIEW
ENDIF
IF lPrintSchermMax
SET PREVIEW RECT 0,0,nSchermhoogte,nSchermbreedte
ELSE
SET PREVIEW RECT 0,0,575,800
ENDIF
SET PREVIEW SCALE nZoomPrint
ELSE
SELECT BY DIALOG
ENDIF
IF HBPRNERROR != 0
RETURN
ENDIF
SET UNITS MM && Zet @... units op millimeters
SET PAPERSIZE DMPAPER_A4 && Zet papier formaat op A4
SET PAGE ORIENTATION DMORIENT_PORTRAIT && Zet papier orientatie op portrait
*SET BIN DMBIN_FIRST && gebruik de eerste papierlade
SET QUALITY DMRES_MEDIUM && Zet print kwaliteit op normaal
SET COLORMODE DMCOLOR_COLOR && Zet print kleur mode op kleur
SET SAVEBUTTONS OFF && de button voor opslaan uitschakelen
DEFINE FONT 'F0' NAME 'Arial' SIZE 10
START DOC NAME 'Plantenkennis lijst'
Kind regards,
Rene Koot