I have same programs made with HMG 3.4.3 or before and they work fine, now I'm writting an aplication in HMG 3.4.4. ANSI and want to make a pdf file and also want an image in it. The source is the following
Code: Select all
#include <hmg.ch>
#include "hfcl.ch"
#include "hmg_hpdf.ch"
Function listado_02()
SELECT HPDFDOC "listado.pdf" PAPERSIZE HPDF_PAPER_A4
START HPDFDOC
START HPDFPAGE
SET HPDFDOC ENCODING TO "WinAnsiEncoding"
@ 85, 100 HPDFPRINT IMAGE 'Images\logofeet.PNG' WIDTH 100 HEIGHT 30 TYPE PNG
@ 25, 10 HPDFPRINT "Listado de Titulaciones"
@ 32, 5 HPDFPRINT LINE TO 32, 200 PENWIDTH 1
@ 185, 100 HPDFPRINT IMAGE 'Images\printer.jpg' WIDTH 100 HEIGHT 30 TYPE JPG
END HPDFPAGE
END HPDFDOC
Execute File 'listado.pdf'
Return Nil
I can also compile without error the sample HMG_HPDF_Doc witch has the function HPDFPRINT IMAGE
Sorry for my bad english