Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
_gb2.pngPrinter and Gambas - Print ASCII characters
Print ASCII characters with Gambas 2




I find the solution to print ASCII characters on the printer without use draw(printer) event.

Simply use the extern GB2 command :

EXEC ["lpr", Application.Path & "/printing.txt"]

to print characters inside your text file called printing.txt in your application path.
regards
 ;)


Creation date : 09/11/2013 @ 23:41
Last update : 09/11/2013 @ 23:41
Category : Printer and Gambas
Page read 3913 times


Print the article Print the article


react.gifReactions to this article


Reaction #1 

by vuott 14/11/2013 @ 16:32

You can avoid the use of lpr and Exec by using Cups API external functions:

http://www.gambas-it.org/wiki/index.php?title=Stampare_un_file_con_le_funzioni_del_API_di_cups

QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^