FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour HARU PDF
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
HARU PDF
Posted: Thu Mar 24, 2022 10:54 PM

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,

Thanks,

Byron Hopp

Matrix Computer Services
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: HARU PDF
Posted: Fri Mar 25, 2022 12:27 AM

Yes

viewtopic.php?f=16t=37882
and search in this topic for HARUPDF

&

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Re: HARU PDF
Posted: Fri Mar 25, 2022 01:55 AM

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,

Thanks,

Byron Hopp

Matrix Computer Services
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: HARU PDF
Posted: Fri Mar 25, 2022 09:35 AM

I don't know about your older xHarbour build but in the latest one we have libharu.lib.

EMG

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: HARU PDF
Posted: Sat Mar 26, 2022 02:25 AM
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?
Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: HARU PDF
Posted: Sat Mar 26, 2022 02:25 AM
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?
Regards



G. N. Rao.

Hyderabad, India
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Re: HARU PDF
Posted: Mon Mar 28, 2022 07:40 PM

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

Thanks,

Byron Hopp

Matrix Computer Services
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Re: HARU PDF
Posted: Tue Mar 29, 2022 10:59 PM

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,

Thanks,

Byron Hopp

Matrix Computer Services
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Re: HARU PDF
Posted: Wed Mar 30, 2022 07:41 PM

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,

Thanks,

Byron Hopp

Matrix Computer Services

Continue the discussion