problem with create pdf, help

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
dragancesu
Posts: 921
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

problem with create pdf, help

Post by dragancesu »

I'm trying to create a report in pdf format and fail, it's probably a small mistake that I can't see
If someone has the time to look and point me to the error being grateful

In attacment is the program and data

thank you
Attachments
problem.zip
(2.3 KiB) Downloaded 238 times
User avatar
serge_girard
Posts: 3166
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: problem with create pdf, help

Post by serge_girard »

Dragan,

Try this first:

in your program:

#include "hmg_hpdf.ch"

in configuration:
inc=yes
head=native
libs=libhpdf

Greetings, Serge
There's nothing you can do that can't be done...
User avatar
dragancesu
Posts: 921
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: problem with create pdf, help

Post by dragancesu »

I've tried the new version 3.2, an example of the \hmg\hfcl\Samples\hmghpfdoc , library libhpdf inserted into the system

Simple programs of works, but this will not
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: problem with create pdf, help

Post by andyglezl »

Hello dragancesu

All you have 'FONT' Courier 'SIZE 12 ", change it to" FONT' Courier 'SIZE 14 ".
or Take off "FONT 'Courier'"
-------------------------------------------------------------------------------
Hola dragancesu

Todo lo que tengas "FONT 'Courier' SIZE 12", cambialo por "FONT 'Courier' SIZE 14".
o quitale "FONT 'Courier' "
-------------------------------------------------------------------------------
@..HPDFPRINT
This command is used to render a single line of text data in the specified font, size, color and
alignment at the specified row and column. The text rendered is left aligned unless otherwise
specified. Only following Base14 fonts are built-in. Courier, Courier-Bold, Courier-Oblique,
Courier-BoldOblique, Helvetica, Helvetica-Bold, Helvetica-Oblique, Helvetica-BoldOblique,
Times-Roman, Times-Bold, Times-Italic, Times-BoldItalic, Symbol, ZapfDingbats. The text will be
rendered in the current character encoding.
Helvetica is the default font if no fontname is specified. Default fontsize is 12.
True Type Fonts can also be used if the absolute address of the True Type Font file is mentioned.
Otherwise the TTF shall be required at the runtime in the same directory as of the executable file.
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
dragancesu
Posts: 921
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: problem with create pdf, help

Post by dragancesu »

Thank you very much
Post Reply