Print Preview in HMG, CatchysoftActiveX,PrintPreview Activex

Moderator: Rathinagiri

User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

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 514 times
BPD
Convert Dream into Reality through HMG
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

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: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

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: 440
Joined: Fri Aug 01, 2008 6:03 pm
DBs Used: DBF
Location: uruguay
Contact:

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

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/architect/developer.
HW_apache (webserver modules) co-developer.
HbTron (Html GUI for harbour desktop hybrid apps) co-developer.
https://www.hbtron.com
User avatar
karweru
Posts: 220
Joined: Fri Aug 01, 2008 1:51 pm
DBs Used: DBF,mysql,mariadb,postgresql,sqlite,odbc
Contact:

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

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: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

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: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

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: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

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: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

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: 245
Joined: Sat Aug 02, 2008 5:03 pm

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

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