Page 1 of 1

HARU PDF

PostPosted: Thu Mar 24, 2022 10:54 pm
by byron.hopp
I played around with Mod_Harbour a few months ago and was able to write several reports with what I believe was Haru PDF. Can I use Haru PDF in a normal Harbour/Fivewin winforms application? Thank you,

Re: HARU PDF

PostPosted: Fri Mar 25, 2022 12:27 am
by cnavarro
Yes
viewtopic.php?f=16&t=37882
and search in this topic for HARUPDF

Re: HARU PDF

PostPosted: Fri Mar 25, 2022 1:55 am
by byron.hopp
Thanks for the quick response. I have browsed through the posts and I need this to work with the xHb compilier (xHarbour Builder). I use it in Mod_Harbour is it built into it?

xHarbour Compiler build 0.99.61 (SimpLex)
Copyright 1999-2006, http://www.xharbour.org http://www.harbour-project.org/

Syntax: xhb <file[s][.prg]> [options]

Is there a version of HaruPdf that works with this version. The program I am attempting to modify is compiled in this version. I am not sure if the customer will want to have it upgraded to Bcc7 version. I've seen mention of it but don't know where to find the harupdf.lib. It is not in my xHb directory.

Thanks,

Re: HARU PDF

PostPosted: Fri Mar 25, 2022 9:35 am
by Enrico Maria Giordano
I don't know about your older xHarbour build but in the latest one we have libharu.lib.

EMG

Re: HARU PDF

PostPosted: Sat Mar 26, 2022 2:25 am
by nageswaragunupudi
byron.hopp wrote:I played around with Mod_Harbour a few months ago and was able to write several reports with what I believe was Haru PDF. Can I use Haru PDF in a normal Harbour/Fivewin winforms application? Thank you,

What is your FWH version?

Re: HARU PDF

PostPosted: Sat Mar 26, 2022 2:25 am
by nageswaragunupudi
byron.hopp wrote:I played around with Mod_Harbour a few months ago and was able to write several reports with what I believe was Haru PDF. Can I use Haru PDF in a normal Harbour/Fivewin winforms application? Thank you,

What is your FWH version?

Re: HARU PDF

PostPosted: Mon Mar 28, 2022 7:40 pm
by byron.hopp
In response to what version FWH, below is from the FiveWin.ch:
#define FWCOPYRIGHT "(c) FiveTech Software, 1993-2015"

#ifdef __HARBOUR__
#ifdef __XHARBOUR__
#ifndef __64__
#define FWVERSION "FWHX 15.10"
#define FWDESCRIPTION "FiveWin for xHarbour"
#else
#define FWVERSION "FWHX64 15.10"
#define FWDESCRIPTION "FiveWin for xHarbour 64"
#endif
#else
#ifndef __64__
#define FWVERSION "FWH 15.10"
#define FWDESCRIPTION "FiveWin for Harbour"
#else
#define FWVERSION "FWH64 15.10"
#define FWDESCRIPTION "FiveWin for Harbour 64"
#endif
#endif
#xtranslate SetCursor( => WSetCursor( // to avoid conflicts with Harbour functions
#xtranslate __Keyboard( => ___Keyboard( // to avoid conflicts with Harbour functions
#xtranslate LastKey( => _LastKey( // to avoid conflicts with Harbour functions
#endif

Re: HARU PDF

PostPosted: Tue Mar 29, 2022 10:59 pm
by byron.hopp
OK, I have converted my old xHB compiled program to a Borland c++ compiled program.
I find these two libs that I think are related to Haru Pdf:
hbhpdf-bcc.lib
hbhpdf.lib

The program compiles and links but does not display, the main window does not draw on the screen.
Is there something else that needs to be done to make this happen. I haven't even tried to run my PDF code for a report.

Thanks,

Re: HARU PDF

PostPosted: Wed Mar 30, 2022 7:41 pm
by byron.hopp
I am using the Borland BCC compiler and place the two following lib files in my mak file:
hbhpdf-bcc.lib
hbhpdf.lib

After I add these to my make file all of the unresolved externals go away but the app does not launch. Nothing shows on the screen, and upon launching it does not appear in the Task Manager windows as well. Many people have mentioned LibHaru.lib but I cannot find that lib in my FWH, xHb, Bcc, Harbour folders. Where can I get a copy of this lib. Is it available in the new version of FiveWin? And if I upgrade to a new version of FiveWin do I need to change my Bcc Borland compilier?

Thanks,