how to bypass preview and print directly using WinRepInt()

HMG Samples and Enhancements

Moderator: Rathinagiri

Post Reply
User avatar
Anand
Posts: 595
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF

how to bypass preview and print directly using WinRepInt()

Post by Anand »

Hi members,

I am new here but an old Clipper programmer. I found HMG very useful for converting my old codes. The samples of HMG are a boon for programmers like me.

I am trying to use sample c:\MiniGUI\SAMPLES\Advanced\REPORT_INTERPRETER\.

All is OK, except that I could not print the report (mod) directly to printer. I followed the help.
I tried WinREPINT("Unified.mod","TEST",,,, .F. ,aDRV[choice]), but it did not work.

Please guide me.

Regards,

Anand
Regards,

Anand

Image
User avatar
serge_girard
Posts: 3165
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: how to bypass preview and print directly using WinRepInt()

Post by serge_girard »

Hello Anand, welcome from Belgium !

Serge
There's nothing you can do that can't be done...
User avatar
gfilatov
Posts: 1067
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: how to bypass preview and print directly using WinRepInt()

Post by gfilatov »

Anand wrote:Hi members,

I am new here but an old Clipper programmer. I found HMG very useful for converting my old codes. The samples of HMG are a boon for programmers like me.

I am trying to use sample c:\MiniGUI\SAMPLES\Advanced\REPORT_INTERPRETER\.

All is OK, except that I could not print the report (mod) directly to printer. I followed the help.
I tried WinREPINT("Unified.mod","TEST",,,, .F. ,aDRV[choice]), but it did not work.

Please guide me.
Hello Anand,

Thanks for your interest to MiniguiEx :!:

Please replace the following line in your file Unified.mod
[Declare]80/PREV
with
[Declare]80/PRN
and try again.

Hope that helps :idea:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
Anand
Posts: 595
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF

Re: how to bypass preview and print directly using WinRepInt()

Post by Anand »

Thanks gfilatov, it worked. I also found it works better if MiniPrint is selected instead of HBPRINT, in the sample exe.

Got [Declare]80/PRN/SELE work too, to select a printer driver before print.

Thanks a lot. HMG rocks. :D

Regards,

Anand
Regards,

Anand

Image
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: how to bypass preview and print directly using WinRepInt()

Post by esgici »

Anand wrote:Hi members,
I am new here but an old Clipper programmer. I found HMG very useful for converting my old codes. The samples of HMG are a boon for programmers like me.
...
Anand
Hello Anand

You are welcome the wonderful world of HMG :D

You may or not know, India is important for HMG and HMG users: first, builder of this marvelous forum Mr. Sri Rathinagiri is one of very first users and supporters of HMG. So we have many friends from India. And also one of very first members of this forum is your neighbor. He is a good programmer and good friend; do you know him ?

Salutes from Turkiye and happy HMG'ing :D

With my best regards :D
Viva INTERNATIONAL HMG :D
User avatar
Anand
Posts: 595
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF

Re: how to bypass preview and print directly using WinRepInt()

Post by Anand »

esgici wrote:You may or not know, India is important for HMG and HMG users: first, builder of this marvelous forum Mr. Sri Rathinagiri is one of very first users and supporters of HMG. So we have many friends from India. And also one of very first members of this forum is your neighbor. He is a good programmer and good friend; do you know him ?
No. But I know that many Indians have contributed a lot to HMG. I wish to contribute too to this fabulous free xbase community.

Regards,

Anand
Regards,

Anand

Image
Post Reply