Print Preview in HMG, CatchysoftActiveX,PrintPreview Activex

Moderator: Rathinagiri

User avatar
bpd2000
Posts: 1188
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 277 times
Been thanked: 158 times

Print Preview in HMG, CatchysoftActiveX,PrintPreview Activex

Post by bpd2000 »

Find Sample of Print Preview in HMG
Using Activex control of Catchysoft and
Activex control of PrintPreview

I think Print Preview control of HMG must be improved

[u]Moderator Notes[/u] (Pablo César) wrote:Topic moved from Forum en Español.
Attachments
PrintPreview-activex-report.rar
(1.03 MiB) Downloaded 419 times
BPD
Convert Dream into Reality through HMG

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

Post by esgici »

Hi Dave
bpd2000 wrote:Find Sample of Print Preview in HMG
Using Activex control of Catchysoft and
Activex control of PrintPreview

I think Print Preview control of HMG must be improved
Print Preview of MiniPrint of HMG discussed many times; AFAIK it's in whish list of Roberto.

Anyway I have tried your offer and :

Date:09/22/12 Time: 14:26:56
Error TOleAuto/-1 : TOLEAUTO:NEW

Called from THROW(22)
Called from TOLEAUTO:NEW(110)
Called from CREATEOBJECT(117)
Called from REPORT1(88)
Called from (b)MAIN(24)
Called from _DOCONTROLEVENTPROCEDURE(5275)
Called from EVENTS(1390)
Called from _DOMESSAGELOOP(0)
Called from _ACTIVATEWINDOW(4934)
Called from DOMETHOD(7374)
Called from MAIN(35)


Moreover using some .exes and / or .dlls come unknown source (especially commercial ones) isn't secure I think.

Anyway thanks to your contribution :)

Regards
Viva INTERNATIONAL HMG :D

User avatar
bpd2000
Posts: 1188
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 277 times
Been thanked: 158 times

Post by bpd2000 »

Dear esgici,

Both .Dll are provided, program will register at runtime
Error shows you must register dll with regsvr32 command and uregister when not require
I have tested at my end
BPD
Convert Dream into Reality through HMG

User avatar
apais
Posts: 376
Joined: Fri Aug 01, 2008 6:03 pm
Location: uruguay
Has thanked: 75 times
Been thanked: 65 times
Contact:

Post by apais »

IMHO the best print preview is a pdf printer driver.
There are lots of then in the net.

HTH
Angel
Angel Pais
Web Apps consultant.
Harbour Web Drivers co-developer.
HbTron (Html GUI for harbour desktop apps) co-developer.
https://www.mod-harbour.com

User avatar
karweru
Posts: 207
Joined: Fri Aug 01, 2008 1:51 pm
DBs Used: DBF,mysql,mariadb,postgresql,sqlite,odbc
Has thanked: 1 time
Been thanked: 10 times
Contact:

Post by karweru »

Hi Angel,

If you might have code to produce pdf directly from hmg, please share.
Kind regards,
Gilbert.

User avatar
mol
Posts: 3434
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 277 times
Been thanked: 176 times
Contact:

Post by mol »

karweru wrote:Hi Angel,

If you might have code to produce pdf directly from hmg, please share.
I've installed PDFCreator (freeware) and I'm printing to PDF selecting PDEFCreator as printer. It works perfectly, so it's waste of time to write individual export procedures, IMHO.

Regards, Marek

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

Post by esgici »

karweru wrote:If you might have code to produce pdf directly from hmg, please share.
+1 :)

This call is not only to Angel, but everyone who has this possibility ;)

As far as I follow there are some problems in contributed code, HaruPdf and others.

Will be very appreciated if our friend(s) will share such experience with us :)

Hi Mol,

Sending a document to printer and direct to PDFCreator is another thing. In this case we have to point to consider :

1: Does PDFCreator can run "quiet" mode, that is without requiring intervention of end user ?
2: How we have preparing "document", In .doc / .rtf format or anything else ?

My considering in "using PDF for reporting" is building .pdf by our won code

In this case too we have "how to prepare" question. Bu I hope after analyzing some example we will achieve this.

Thank in advance :)

Regards
Viva INTERNATIONAL HMG :D

User avatar
bpd2000
Posts: 1188
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 277 times
Been thanked: 158 times

Post by bpd2000 »

Marek wrote:
I've installed PDFCreator (freeware) and I'm printing to PDF selecting PDEFCreator as printer. It works perfectly, so it's waste of time to write individual export procedures, IMHO.
Marek, you are correct, PDFCreator is best option
BPD
Convert Dream into Reality through HMG

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

Post by esgici »

Hi Dave
bpd2000 wrote:... PDFCreator is best option
Could you share a little example for preparing a report to send PDFCreator ?

Regards
Viva INTERNATIONAL HMG :D

Carlos Britos
Posts: 242
Joined: Sat Aug 02, 2008 5:03 pm
Has thanked: 7 times
Been thanked: 13 times

Post by Carlos Britos »

esgici wrote:
karweru wrote:If you might have code to produce pdf directly from hmg, please share.
+1 :)

This call is not only to Angel, but everyone who has this possibility ;)

As far as I follow there are some problems in contributed code, HaruPdf and others.

Will be very appreciated if our friend(s) will share such experience with us :)
Hi,
in the hmg cousin, oohg exist a code to print in pdf.
The class is TPrint, maybe adapting this code to hmg. The file is h_print.prg.
Regards/Saludos, Carlos (bcd12a)

Post Reply