Printing

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
MGOLDFARB
Posts: 71
Joined: Thu Jun 21, 2012 7:46 am

Printing

Post by MGOLDFARB »

Hi. Any one know of a way to deactivate the SAVE option on the printing preview?
The save option seems to save each page as a seperate image. This could get very messy if a user hits this button by accident on a 100 page report.

Thanks.

Mark
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Printing

Post by danielmaximiliano »

Hi Mark:
try disabling the Button 'Save'

Code: Select all

DoMethod ( "_HMG_PRINTER_PPNAV", "b7" , "Hide" ) 
it is in C:\hmg.3.0.46\SOURCE\h_controlmisc.prg
in the window _HMG_PRINTER_PPNAV line 4433
and the control is called b7 line 4524

Code: Select all

DEFINE BUTTON b7
				ROW 2
				COL 246
				WIDTH 30
				HEIGHT 30
				PICTURE "HP_SAVE"
				TOOLTIP _HMG_SYSDATA [ 371 ] [27] + ' [Ctrl+S]'
				ACTION _hmg_printer_savepages()
			END BUTTON
but it gives me error and says that the control does not exist
Date:11/22/12 Time: 14:27:34
Error: HMG 3.0.46 (2012.11.06)
Control: b7 Of _HMG_PRINTER_PPNAV Not defined. Program Terminated
Called from DOMETHOD(7448)
Called from PRINTTEST4(112)
Called from (b)MAIN(41)
Called from _DOCONTROLEVENTPROCEDURE(5276)
Called from EVENTS(1391)
Called from _DOMESSAGELOOP(0)
Called from _ACTIVATEWINDOW(4935)
Called from MAIN(49)
I do not know why there is no brand :cry:
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
MGOLDFARB
Posts: 71
Joined: Thu Jun 21, 2012 7:46 am

Re: Printing

Post by MGOLDFARB »

Thanks. I am hesistant to change anything in source code directly to remove the button, as I will need to change it for every new release then.

Maybe someone else has some ideas.

Mark
Post Reply