Share your opinion
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
|
Create own software - Print with Gambas 2
PRINT WITH GAMBAS 2
Today, with this little application, we print text and rectangle to your printer. 1) How to work... To print something to your printer, you have to use the same command than draw in a drawarea : draw.begin(printer) ....Something to print draw.end 2) To configure to configure the thing to print, use the system printer windows with this command printer.setup() Here you find a screenshot of my linux system printer window configuration : Then you find now all command to print : printer.abort : cancel print printer.black : print in black and white printer.color : print in colors printer.colormode :choose black and white or colors printer.copies : numbers of copies to print printer.file : print in a file printer.frompage : print from this page printer.height : height of the area to print printer.landscape : print in landscape format printer.maxpage: maximun pages to print printer.minpage : minimun page to print printer.name : printer name printer.newpage : ? printer.orientation : 0 or 1 landscape or paysage printer.resolution : DPI resolution printer.setup : open the printer windo configuration printer.size: Size of area to print printer.topage : last page to print printer.width : with of area to print Thanks for your attention here you find the source code of example
Creation date : 08/03/2012 @ 10:57 Reactions to this article
| QUICK MENU
SEARCH
LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS
visitors visitors online ARCHIVES GAMBAS 1/2
|