HMG 3.3.1 (Stable)

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

User avatar
tonton2
Posts: 465
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: HMG 3.3.1 (Stable)

Post by tonton2 »

mol wrote:I've modified h_controlmisc.prg to allow user to enter base filename for saving his prinouts:
Image

Code: Select all

Function _HMG_PRINTER_SavePages()
Local c , i , f , t , d , e, x, h, a := {}
Local g := {"PDF", "BMP","JPG","GIF","TIF","PNG","EMF"}
Local nTypePicture := { Nil , BT_FILEFORMAT_BMP, BT_FILEFORMAT_JPG, BT_FILEFORMAT_GIF, BT_FILEFORMAT_TIF, BT_FILEFORMAT_PNG, Nil }
Local hBitmap, nType
Local flag_PDF := .F.
local nWidth, nHeight, nDPI, cDocName

x := _HMG_PRINTER_GetOutFileType ( g )   /*          Returns following Array:
                                               ( x[1]=>Folder_Name | x[2]=>File_Type | x[3]=>Base file name)  */
.....................................
if HMG_LEN(x)=0
............................................. 
        FONTNAME "Arial"
        FONTSIZE 9
    END BUTTON

END WINDOW
CENTER WINDOW Out_File
ACTIVATE WINDOW Out_File
Return aRet
Bonsoir,
le problème persiste toujours, en mettant un autre nom pour le fichier(PDF), la sauvegarde se fait toujours avec le même nom:"HMG_Print_System_0001.pdf".
je ne peux pas changer le nom du fichier( pdf.)
merci a toute l'équipe
Google


good evening,
the problem still persists, when I put an another name for the file(PDF) , the backup always does the same name: "HMG_Print_System_0001.pdf."
I cannot change the name for the pdf file.
thank you to all the team
L'Algerie vous salut
Y.TABET
User avatar
Clip2Mania
Posts: 99
Joined: Fri Jun 13, 2014 7:16 am
Location: Belgium

Re: HMG 3.3.1 (Stable)

Post by Clip2Mania »

the problem still persists, when I put an another name for the file(PDF) , the backup always does the same name: "HMG_Print_System_0001.pdf."
I cannot change the name for the pdf file.
As mentioned before, change h_controlmisc.prg as proposed by Mol
Problem is that these modifications are not persistent. I've adapted the function _HMG_PRINTER_SavePages() as follows:

Code: Select all

if !empty(cDocName)
  _HMG_PRINTER_SETJOBNAME(cDocName)
endif
cDocName := charrepl(":/.,|\@#$%&^*+ ",_HMG_SYSDATA [ 358 ],"_") + "_"     
You can permanently change the function _HMG_PRINTER_SETJOBNAME where the default "HMG Print System" is set.

Hope this helps.
User avatar
tonton2
Posts: 465
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: HMG 3.3.1 (Stable)

Post by tonton2 »

Code: Select all

if !empty(cDocName)
  _HMG_PRINTER_SETJOBNAME(cDocName)
endif
cDocName := charrepl(":/.,|\@#$%&^*+ ",_HMG_SYSDATA [ 358 ],"_") + "_"     
You can permanently change the function _HMG_PRINTER_SETJOBNAME where the default "HMG Print System" is set.

Hope this helps.[/quote]
Bonjour,
Can you give me more explanation, please
L'Algerie vous salut
Y.TABET
User avatar
Clip2Mania
Posts: 99
Joined: Fri Jun 13, 2014 7:16 am
Location: Belgium

Re: HMG 3.3.1 (Stable)

Post by Clip2Mania »

You can permanently change the function _HMG_PRINTER_SETJOBNAME where the default "HMG Print System" is set.
In h_controlmisc.prg, search for the function _HMG_PRINTER_SETJOBNAME. Should be around line 6560 or so.

Code: Select all

Function _HMG_PRINTER_SETJOBNAME( cName )
if valtype ( cName ) = 'U'
    _HMG_SYSDATA [358] := 'HMG Print System'
else
    _HMG_SYSDATA [358] := cName
endif
Return Nil
Change the if-condition with whatever you want / rebuild
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG 3.3.1 (Stable)

Post by esgici »

Hi All

IMO modifying system file is not a good way :(

I hope this change will be applied in the next release,
because this is an important and general need.

Happy HMG :D
Viva INTERNATIONAL HMG :D
User avatar
Clip2Mania
Posts: 99
Joined: Fri Jun 13, 2014 7:16 am
Location: Belgium

Re: HMG 3.3.1 (Stable)

Post by Clip2Mania »

+1
User avatar
tonton2
Posts: 465
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: HMG 3.3.1 (Stable)

Post by tonton2 »

esgici wrote:Hi All

IMO modifying system file is not a good way :(

I hope this change will be applied in the next release,
because this is an important and general need.

Happy HMG :D
+1
Merci a tous et pour Tout
L'Algerie vous salut
Y.TABET
User avatar
tonton2
Posts: 465
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: HMG 3.3.1 (Stable)

Post by tonton2 »

Javier Tovar wrote:Hola Tonton2,

-Solo ve a donde esta ese linea en el archivo C: \ HMG \ include \ i_tree.ch en la linea 233, y pones doble diagonal al inicio:

Code: Select all

//_HMG_THIS_TREEITEM_VALUE
-Ejecutas el BuildAllLib.Bat
-Listo

Saludos
bonsoir
When we use this

Code: Select all

//_HMG_THIS_TREEITEM_VALUE
we get that error
Attachments
error_h_init.jpg
error_h_init.jpg (153.15 KiB) Viewed 5202 times
L'Algerie vous salut
Y.TABET
User avatar
Agil Abdullah
Posts: 204
Joined: Mon Aug 25, 2014 11:57 am
Location: Jakarta, Indonesia
Contact:

Re: HMG 3.3.1 (Stable)

Post by Agil Abdullah »

Hallo Mr.Roberto López and friends,

I need some enhancements to EXTENDED-EDIT to make it more applicable and safer to manage data in offices. What I need are :

1) add an option [FIELDLOCK [n]] to EDIT EXTENDED command, to make sure that user cannot modify the designated field when in modify-operation. But always open when in append-operation.

2) Function "Find" is subject to case-sensitive, so it always fails to find record under name "Ray" if the key is "r" ; key must be "R". Pls make it NOT case-sensitive.

3) I think more interesting to move Edit-window to the right side, instead of left side because it hides the most important info which usually put in the left (except for Arabic who reads right-to-left style).

Attacched is my test *.prg


Thanks for kind attention.
Attachments
Grid_EDIT_2 - Test.rar
(7.88 KiB) Downloaded 316 times
EditExt1.jpg
EditExt1.jpg (238.17 KiB) Viewed 5183 times
Agil Abdullah Albatati (just call me Agil)
Programmer Never Surrender
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HMG 3.3.1 (Stable)

Post by esgici »

tonton2 wrote:...When we use this

Code: Select all

//_HMG_THIS_TREEITEM_VALUE
we get that error...
esgici wrote: IMO modifying system file is not a good way :(
Viva INTERNATIONAL HMG :D
Post Reply