Page 1 of 3

Print Preview in HMG, CatchysoftActiveX,PrintPreview Activex

Posted: Sat Sep 22, 2012 11:09 am
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.

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

Posted: Sat Sep 22, 2012 11:45 am
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

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

Posted: Sat Sep 22, 2012 11:51 am
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

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

Posted: Sun Sep 23, 2012 10:56 pm
by apais
IMHO the best print preview is a pdf printer driver.
There are lots of then in the net.

HTH
Angel

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

Posted: Mon Sep 24, 2012 9:46 am
by karweru
Hi Angel,

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

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

Posted: Mon Sep 24, 2012 10:29 am
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

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

Posted: Mon Sep 24, 2012 10:46 am
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

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

Posted: Mon Sep 24, 2012 10:53 am
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

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

Posted: Mon Sep 24, 2012 12:02 pm
by esgici
Hi Dave
bpd2000 wrote:... PDFCreator is best option
Could you share a little example for preparing a report to send PDFCreator ?

Regards

Re: Print Preview in HMG, CatchysoftActiveX,PrintPreview Act

Posted: Mon Sep 24, 2012 12:28 pm
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.