how to ?

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!
Post Reply
fdaniele
Posts: 7
Joined: Fri Jul 03, 2020 1:56 am

how to ?

Post by fdaniele »

excuse me
i am new on this forum and want to learn MH

there is a guide "how to" for begin ?

ok to study examples but a text semi-complete is better :)

thanks very much

Daniele
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: how to ?

Post by Antonio Linares »

Daniele,

https://github.com/FiveTechSoft/mod_harbour/wiki

1. what is it mod_harbour

mod_harbour is a module extension for Apache that supports Harbour PRGs (and HRBs) same as Apache supports PHPs

2. How to install mod_harbour

https://github.com/FiveTechSoft/mod_har ... /readme.md
https://github.com/FiveTechSoft/mod_har ... dows-Xampp

3. Functions provided my mod_harbour:

https://github.com/FiveTechSoft/mod_har ... od-Harbour

4. Using DBFs from the server:

https://github.com/FiveTechSoft/mod_har ... the-server

5. Using MySQL from the server:

https://github.com/FiveTechSoft/mod_har ... me-records

6. Troubleshoting

https://github.com/FiveTechSoft/mod_har ... ot-working

7. How to use your own libraries:

https://github.com/FiveTechSoft/mod_har ... od_harbour

8. How to activate the rewrite module:

https://github.com/FiveTechSoft/mod_har ... ite-module

9. Tables and form designers:

https://github.com/FiveTechSoft/mod_har ... -Designers

10. MVC: Model View Controller, the right way to use mod_harbour:

Model (data), View (user interface), Controller (requests and results administrator) is the right way to develop web apps.
You can use the Mercury library for mod_harbour that implements MVC:
regards, saludos

Antonio Linares
www.fivetechsoft.com
fdaniele
Posts: 7
Joined: Fri Jul 03, 2020 1:56 am

Re: how to ?

Post by fdaniele »

Thanks mr. Linares

in a small test i see that in browser work also the serial port !! Wonderfull
lComOk := com_Open(1, nBuff_size) // Open port

IF ! com_Open(1, 1000)
? "Com non presente"
else
? "Com1 presente"
endif

reply correctly !!

Little question:
is it possible to print overcoming browser restrictions?
I'll explain
with a button on the web page it is possible to print directly to a printer,
perhaps not the default one, without going through the printer choice of the browser?

thanks for your work

Daniele
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: how to ?

Post by Antonio Linares »

Daniele,

Please try:

SET PRINTER on | OFF | <xlToggle>
SET PRINTER TO [<xcDevice> | <xcFile> [ADDITIVE]]

then use, QOut( "Hello world" )
regards, saludos

Antonio Linares
www.fivetechsoft.com
fdaniele
Posts: 7
Joined: Fri Jul 03, 2020 1:56 am

Re: how to ?

Post by fdaniele »

wow !! to a file work !!!

was it so easy ?!!????
:oops:

unbelievable !

thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks thanks

:D

but .... how to send to an usb/network printer ?


Daniele
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: how to ?

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
fdaniele
Posts: 7
Joined: Fri Jul 03, 2020 1:56 am

Re: how to ?

Post by fdaniele »

Dear mr. Antonio, dear all friends

in my little tests i found that is possible to use the printer and serial port of the server
but is possible to use serial or print directaly to the serial/printer of the pc client ?

in other words, print or otherwise by skipping the browser's security settings ?

thanks in advance

Daniele
fdaniele
Posts: 7
Joined: Fri Jul 03, 2020 1:56 am

Re: how to ?

Post by fdaniele »

No replay?
Please...
:D
User avatar
Carles
Posts: 937
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona
Contact:

Re: how to ?

Post by Carles »

fdaniele,

can you print a web page? You can use for example window.print (). See https://www.w3schools.com/jsref/met_win_print.asp
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

https://modharbour.app
https://modharbour.app/compass
https://forum.modharbour.app
fdaniele
Posts: 7
Joined: Fri Jul 03, 2020 1:56 am

Re: how to ?

Post by fdaniele »

so easy ?!?

woooowwwww

correction:
thanks Mr. Carles

anyway the preview of the print is showed 8)
i want to print directaly (like a POS)

Thanks anyway mr. Carles, really appreciate your help :D

Daniele
Post Reply