Shyam

New members who wish to post and participate in HMG Forum, please introduce yourselves in this forum by starting a new thread.

Moderator: Rathinagiri

Shyam
Posts: 3
Joined: Thu Jul 27, 2017 7:04 am
DBs Used: DBF

Shyam

Post by Shyam » Thu Jul 27, 2017 2:51 pm

Thank you, Sir
To Add me in HMGForum.com
I am very much glade to join with us,
I am new programmer, well I used Clipper 5.2/87 very much
I request all members to try me help my some questions
because I have to quick develope applicaton in HMG Unicode.
some parts I have done but I have queries in:

Query:1

Report Writer,How to develope code like Invoice Printing / formating easy
I any have code please. send me in :
my email : shyamlimbachia@gmail.com

Thanks all friends
any one can answer me soon .
I am waiting any one reply.

User avatar
Rathinagiri
Posts: 5126
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 113 times
Been thanked: 114 times
Contact:

Post by Rathinagiri » Thu Jul 27, 2017 3:58 pm

Welcome Shyam.

You came to right place. Many will help you here.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
danielmaximiliano
Posts: 2024
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 60 times
Been thanked: 11 times
Contact:

Post by danielmaximiliano » Thu Jul 27, 2017 5:05 pm

Welcome Shyam.
Bienvenido Shyam.

We hope to help in the right way
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

User avatar
esgici
Posts: 4310
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 201 times
Been thanked: 71 times
Contact:

Post by esgici » Thu Jul 27, 2017 5:13 pm

Hi Shyam

Welcome wonderful world of HMG :)

HMG has many documentation:

1- HMGDOC: come with HMG installation package:
HMGDOC.JPG
HMGDOC.JPG (26.65 KiB) Viewed 244 times
2- You can reach it via HMG IDE:
HMG-IDE Banner.JPG
HMG-IDE Banner.JPG (41.03 KiB) Viewed 244 times
3- Giovanni's tutorials:

http://www.elektrosoft.it/tutorials.asp
Giovanni.JPG
Giovanni.JPG (92.88 KiB) Viewed 244 times
4- And finally this forum. You can ask everything you imagine on HMG. Use "search" box and its buttons:
HMG Forum Banner.JPG
HMG Forum Banner.JPG (59.5 KiB) Viewed 244 times
Most probably a member may asked your question before you ;)

Happy HMG'ing :D
Viva INTERNATIONAL HMG :D

User avatar
serge_girard
Posts: 1776
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 239 times
Been thanked: 55 times
Contact:

Post by serge_girard » Thu Jul 27, 2017 6:17 pm

Welcom Shyam !

May I suggest HMGPDF for invoice printing ? Much easier!

Serge/Belgium

Shyam
Posts: 3
Joined: Thu Jul 27, 2017 7:04 am
DBs Used: DBF

Post by Shyam » Mon Jul 31, 2017 8:23 am

Thank you all of my fiends

I am used to developed report in Clipper'5.2 Coding based language
by writing commands
@ r,c say "
and all
so Is there any hope to connect with usb printer
because if I include above commands

it will ask for LPT!: port
and now we are using LASER PRINTER usb based

so any one can send me simple example to my mail please.

my email : shyamlimbachia@gmain.com

will I download and complie in HMGproject and understand well.

thank again to support me.
shyam

User avatar
nekbmm
Posts: 7
Joined: Sat Jul 16, 2016 3:16 am
DBs Used: DBF,SQLite
Location: Ivanjica, Serbia
Has thanked: 1 time

Post by nekbmm » Mon Jul 31, 2017 9:15 am

****************************
Welcom Shyam !

May I suggest HMGPDF for invoice printing ? Much easier!

Serge/Belgium
****************************
Top

That's the solution.

User avatar
dragancesu
Posts: 431
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia
Has thanked: 3 times
Been thanked: 57 times

Post by dragancesu » Mon Jul 31, 2017 9:59 am

First : read documentation
Second : try samples in hmg.x.x.x\samples\printsystem

HMG run like clipper but it's very different, just imagine clipper program without SAY and GET

Code: Select all

I am used to developed report in Clipper'5.2 Coding based language
by writing commands
@ r,c say "
and all
so Is there any hope to connect with usb printer
because if I include above commands
.

@ row,col PRINT field - but row, col measure is in mm
------------------

Somethig like

Code: Select all

set device to printer
set printer to print.txt // lpt1

... print program ...

set printer to 
set device to screen
setprc(0,0)
replace with

Code: Select all

 mPrinter := GetPrinter()
   IF Empty ( mPrinter )
      MsgExclamation( "Printer not selected" )
      RETURN NIL
   ENDIF

   SELECT PRINTER mPrinter ;
      ORIENTATION PRINTER_ORIENT_PORTRAIT ;
      PAPERSIZE PRINTER_PAPER_A4 ;
      PREVIEW 

   START PRINTDOC NAME "report" 

... print program ...

   END PRINTPAGE
END PRINTDOC

also try \samples\hpdf and see how create report in PDF format

read, learn, try, and enjoy in hmg

User avatar
BeGeS
Posts: 43
Joined: Fri Jul 14, 2017 10:45 am
DBs Used: DBF
Location: La Mancha, Spain
Has thanked: 7 times
Been thanked: 9 times

Post by BeGeS » Mon Jul 31, 2017 10:01 am

(I have the impression that Shyam is looking for something fast, urgent)


Shyam, welcome.

Have you tried this command from the command prompt?

C:\> NET USE LPT1: \\MyMachine\MyPrinter /PERSISTENT:YES



(MyMachine & MyPrinter are the variables that you have to give).
I get by with a little help from my friends

jayadevu
Posts: 202
Joined: Tue May 19, 2009 7:10 am
Been thanked: 1 time

Post by jayadevu » Mon Jul 31, 2017 11:27 am

Hi Shyam,

Please download my Generic Txt2Gdi program and modify to suit your purpose.

Link below:
https://www.dropbox.com/s/x6fg8x2ngmc6c ... h.prg?dl=0

Hope that helps.

Warm regards,

Jayadev

Post Reply