Bonsoir,mol wrote:I've modified h_controlmisc.prg to allow user to enter base filename for saving his prinouts:
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
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
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