FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour vertical position in preview
Posts: 218
Joined: Mon Feb 07, 2022 09:54 PM

vertical position in preview

Posted: Thu May 12, 2022 05:48 AM
Hi all,

I'm still struggling with FiveWin preview.
A bitmap must be printed at a certain vertical position.
with this
Code (fw): Select all Collapse
PRINT oPrn NAME "prv_test" PREVIEW
I see the bitmap at it's correct place.

When I code
Code (fw): Select all Collapse
PRINT oPrn NAME "prv_test" PREVIEW FILE cPdfFile
the position is shifted to a wrong position.

Here a complete short test prg
Code (fw): Select all Collapse
#include "FiveWin.ch"

#define FWDIR   "d:\entw\fwh22"
REQUEST FWHARU

PROCEDURE Main()
//----------------
LOCAL oPrn, oFont
LOCAL cPdfFile := CurDrive() + ":\" + curdir() + "\test.pdf"
LOCAL cBmp     := FWDIR + "\bitmaps\fwphone.bmp"
LOCAL nHeight, nRow, nCol, nYRes, nXRes



   TPreview():lListViewHide := .t.
   TPrinter():lUseHaruPDF   := .t.

   PRINT oPrn NAME "prv_test" PREVIEW // FILE cPdfFile

      DEFINE FONT oFont NAME "Arial" SIZE 0, -10 OF oPrn
      nHeight := oPrn:GetTextHeight( "", oFont ) // value for proper line feeds

      nYRes := ( 10 * oPrn:nVertRes() / oPrn:nVertSize() ) / 10 // Faktor for mm in vertical
      nXRes := ( 10 * oPrn:nHorzRes() / oPRn:nHorzSize() ) / 10 // Faktor for mm in horizontal
      nCol  :=  20 * nXRes

      PAGE
         nRow := 52 * nYRes
         oPrn:Say( nRow, nCol, "Line above", oFont )

         @ 59, 22 PRINT TO oPrn IMAGE cBmp SIZE 39.5, 24 MM

         nRow += 8 * nHeight
         oPrn:Say( nRow, nCol, "Line below", oFont )

         ENDPAGE
   ENDPRINT

   RELEASE FONT oFont
RETURN

How could I do that both variants print at the same position?
Thanks and regards
Detlef
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM

Re: vertical position in preview

Posted: Thu May 12, 2022 06:14 AM

Detlef,

Maybe you should also look at the Saytext syntax. I believe that this function is the newer printing solution for future projects...

Marc Venken

Using: FWH 23.08 with Harbour
Posts: 218
Joined: Mon Feb 07, 2022 09:54 PM

Re: vertical position in preview

Posted: Thu May 12, 2022 07:26 AM
Thanks for jumping in, Marc.

I also tried
Code (fw): Select all Collapse
oPrn:SayBitmap( 5.9, 2.2, cBmp, 3.95, 2.4, , "C" )

and got the same fault.
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: vertical position in preview

Posted: Thu May 12, 2022 07:28 AM

Try this

Function PrintMyImage( nLTop,nLLef,nLWid,nLHei,oprn,cFile,nTrans)
loca ades:={}
local aHAs:= {}

         IF File(cFile)
            aDes:=oPrn:Cmtr2Pix(nLTop,nLLef)
            aHas:=oPrn:Cmtr2Pix(nLWid,nLHei)
           oPrn:SayImage( aDes[1],aDes[2], cFile, aHas[1],aHas[2], , , nTrans,  )
       endif
   RETURN NIL
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 218
Joined: Mon Feb 07, 2022 09:54 PM

Re: vertical position in preview

Posted: Thu May 12, 2022 08:08 AM
thanks, Silvio.
But oPrn:SayImage doesn't work with printing to pdf. :-)
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: vertical position in preview

Posted: Thu May 12, 2022 08:37 AM
strange...



here run ok
PrintImage(0.3,0.33,9.8,21,"002.jpg",oPrn)

Code (fw): Select all Collapse
Function PrintImage(nTop,nLeft,nRight,nBottom,cFile,oPrn)
    local lStretch :=.f.
    local nAlpha:=0
    local lTransp:= .f.
    local lGray  := .f.

          oPrn:Cmtr2Pix( @nTop,    @nLeft  )
          oPrn:Cmtr2Pix( @nBottom, @nRight )
          *oPrn:PrintImage( nTop,  nLeft,cFile,nRight,nBottom, lStretch, nAlpha, lTransp, lGray )
           oPrn:SayImage( nTop,  nLeft,cFile,nRight,nBottom)
// oPrn:SayBitmap(nTop,  nLeft,cFile,nRight,nBottom)

           return nil
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 218
Joined: Mon Feb 07, 2022 09:54 PM

Re: vertical position in preview

Posted: Thu May 12, 2022 09:03 AM
but true.
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: vertical position in preview

Posted: Thu May 12, 2022 01:57 PM
use this
oPrn:PrintImage( nTop, nLeft,cFile,nRight,nBottom, lStretch, nAlpha, lTransp, lGray )

see on email
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 218
Joined: Mon Feb 07, 2022 09:54 PM

Re: vertical position in preview

Posted: Fri May 13, 2022 07:25 AM
Silvio.Falconi wrote:use this
oPrn:PrintImage( nTop, nLeft,cFile,nRight,nBottom, lStretch, nAlpha, lTransp, lGray )

see on email

Hi Silvio,

it's still the same error.
The image position is different with
Code (fw): Select all Collapse
PRINT oPrn NAME "prv_test" PREVIEW
and
Code (fw): Select all Collapse
PRINT oPrn NAME "prv_test" PREVIEW FILE cPdfFile

:-)
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: vertical position in preview

Posted: Fri May 13, 2022 08:17 AM
Detlef wrote:
Silvio.Falconi wrote:use this
oPrn:PrintImage( nTop, nLeft,cFile,nRight,nBottom, lStretch, nAlpha, lTransp, lGray )

see on email

Hi Silvio,

it's still the same error.
The image position is different with
Code (fw): Select all Collapse
PRINT oPrn NAME "prv_test" PREVIEW
and
Code (fw): Select all Collapse
PRINT oPrn NAME "prv_test" PREVIEW FILE cPdfFile

:-)


ask to nages!!
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: vertical position in preview

Posted: Fri May 13, 2022 07:50 PM
Please try this:
Code (fw): Select all Collapse
#include "fivewin.ch"

#define FWDIR   "C:\FWH"
REQUEST FWHARU

function Main()

   local oPrn, oFont
   local cPdfFile := TrueName( "test.pdf" )
   local cBmp     := FWDIR + "\bitmaps\fwphone.bmp"
   local nHeight, nRow, nCol

   TPreview():lListViewHide := .t.
   TPrinter():lUseHaruPDF   := .t.

   PRINT oPrn NAME "prv_test" PREVIEW //FILE cPdfFile

      DEFINE FONT oFont NAME "Arial" SIZE 0, -10 OF oPrn
      //
      nHeight := oPrn:GetTextHeight( "", oFont ) // value for proper line feeds
      oPrn:Pix2Units( nil, nil, nil, @nHeight, "MM" )
      nHeight *= 1.2
      //
      
      nCol  :=  20 //MM

      PAGE
         nRow := 52 // MM
         oPrn:Say( nRow, nCol, "Line above", oFont, NIL, NIL, NIL, NIL, "MM" )

         nRow  += nHeight
         @ nRow, 20 PRINT TO oPrn IMAGE cBmp SIZE 39.5, 24 MM

         nRow  += 24
         oPrn:Say( nRow, nCol, "Line below", oFont, NIL, NIL, NIL, NIL, "MM" )

         ENDPAGE
   ENDPRINT

   RELEASE FONT oFont
Regards



G. N. Rao.

Hyderabad, India
Posts: 218
Joined: Mon Feb 07, 2022 09:54 PM

Re: vertical position in preview

Posted: Sat May 14, 2022 07:27 AM

Mr. Rao,
now this works perfect. :D

Many thanks!

Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: vertical position in preview

Posted: Sat May 14, 2022 09:57 AM
wich lib I must link ?

Code (fw): Select all Collapse
Progetto: test, Ambiente: bcc7Harbor:
[1]:Harbour.Exe test.prg  /m /n0 /gc1 /w1 /es2 /a /iC:\Work\fwh\include /iC:\work\HARBOUR\Include /jC:\Work\errori\STAMPA~1\I18n\Main.hil /iinclude;c:\work\fwh\include;C:\work\HARBOUR\include /oObj\test.c
Harbour 3.2.0dev (r1904111533)
Copyright (c) 1999-2019, https://harbour.github.io/
Compiling 'test.prg'...
Lines 5019, Functions/Procedures 1
Generating C source output to 'Obj\test.c'... Done.
[1]:Bcc32.Exe -M -c -DHB_OS_WIN_32 -DHB_FM_STATISTICS_OFF -DHB_NO_DEFAULT_API_MACROS -DHB_NO_DEFAULT_STACK_MACROS -IC:\Work\fwh\include -IC:\work\bcc7\Include\windows\sdk\;C:\work\HARBOUR\Include  -nC:\Work\errori\STAMPA~1\Obj test.c
Embarcadero C++ 7.30 for Win32 Copyright (c) 1993-2017 Embarcadero Technologies, Inc.
test.c:
[1]:iLink32.Exe -Gn -aa -Tpe -s -v @test.bcl
Turbo Incremental Link 6.80 Copyright (c) 1997-2017 Embarcadero Technologies, Inc.
Error: Unresolved external '_HPDF_New' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Free' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_NewDoc' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_FreeDoc' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_FreeDocAll' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_SaveToFile' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_SaveToStream' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_GetStreamSize' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_ReadFromStream' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_ResetStream' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_HasDoc' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_SetErrorHandler' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_GetError' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_GetErrorDetail' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_ResetError' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_SetPagesConfiguration' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_SetPageLayout' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_GetPageLayout' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_SetPageMode' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_GetPageMode' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_SetOpenAction' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_GetCurrentPage' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_AddPage' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_InsertPage' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_GetFont' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_AddPageLabel' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_CreateExtGState' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_CreateOutline' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_GetEncoder' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_GetCurrentEncoder' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_SetCurrentEncoder' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_SetInfoAttr' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_GetInfoAttr' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_SetInfoDateAttr' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_SetPassword' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_SetPermission' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_SetEncryptionMode' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_SetCompressionMode' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetWidth' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetHeight' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetSize' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetRotate' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetWidth' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetHeight' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_CreateDestination' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_CreateTextAnnot' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_CreateLinkAnnot' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_CreateURILinkAnnot' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_TextWidth' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_MeasureText' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetGMode' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetCurrentPos2' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetCurrentTextPos2' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetCurrentFont' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetCurrentFontSize' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetTransMatrix' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetLineWidth' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetLineCap' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetLineJoin' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetMiterLimit' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetDash' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetFlat' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetCharSpace' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetWordSpace' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetHorizontalScalling' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetTextLeading' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetTextRenderingMode' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetTextRise' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetRGBFill' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetRGBStroke' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetCMYKFill' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetCMYKStroke' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetGrayFill' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetGrayStroke' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetStrokingColorSpace' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetFillingColorSpace' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetTextMatrix' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GetGStateDepth' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetSlideShow' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetLineWidth' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetLineCap' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetLineJoin' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetMiterLimit' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetDash' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetExtGState' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GSave' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_GRestore' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_Concat' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_MoveTo' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_LineTo' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_CurveTo' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_CurveTo2' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_CurveTo3' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_ClosePath' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_Rectangle' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_Stroke' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_ClosePathStroke' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetFontAndSize' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_BeginText' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_EndText' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_TextOut' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_MoveTextPos' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_ShowText' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_Fill' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_Eofill' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_FillStroke' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_EofillStroke' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_ClosePathFillStroke' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_ClosePathEofillStroke' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_EndPath' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_Clip' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_Eoclip' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetCharSpace' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetWordSpace' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetHorizontalScalling' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetTextLeading' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetTextRenderingMode' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetTextRise' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_MoveTextPos2' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetTextMatrix' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_MoveToNextLine' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_ShowTextNextLine' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_ShowTextNextLineEx' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetGrayFill' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetGrayStroke' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetRGBFill' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetRGBStroke' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetCMYKFill' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetCMYKStroke' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_ExecuteXObject' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_DrawImage' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_Circle' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_Arc' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_Ellipse' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_TextRect' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Font_GetFontName' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Font_GetEncodingName' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Font_GetUnicodeWidth' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Font_GetBBox' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Font_GetAscent' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Font_GetDescent' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Font_GetXHeight' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Font_GetCapHeight' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Font_TextWidth' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Font_MeasureText' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Encoder_GetType' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Encoder_GetByteType' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Encoder_GetUnicode' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Encoder_GetWritingMode' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Outline_SetOpened' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Outline_SetDestination' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Destination_SetXYZ' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Destination_SetFit' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Destination_SetFitH' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Destination_SetFitV' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Destination_SetFitR' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Destination_SetFitB' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Destination_SetFitBH' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Destination_SetFitBV' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_ExtGState_SetAlphaStroke' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_ExtGState_SetAlphaFill' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_ExtGState_SetBlendMode' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_GetContents' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_CheckError' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_SetZoom' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_Page_Create3DView' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_AttachFile' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_ICC_LoadIccFromMem' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_LoadIccProfileFromFile' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_UseUTFEncodings' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|core
Error: Unresolved external '_HPDF_LoadType1FontFromFile' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|font
Error: Unresolved external '_HPDF_LoadTTFontFromFile' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|font
Error: Unresolved external '_HPDF_LoadTTFontFromFile2' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|font
Error: Unresolved external '_HPDF_LoadPngImageFromFile' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image
Error: Unresolved external '_HPDF_LoadPngImageFromFile2' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image
Error: Unresolved external '_HPDF_LoadRawImageFromFile' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image
Error: Unresolved external '_HPDF_LoadRawImageFromMem' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image
Error: Unresolved external '_HPDF_LoadJpegImageFromFile' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image
Error: Unresolved external '_HPDF_LoadPngImageFromMem' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image
Error: Unresolved external '_HPDF_LoadJpegImageFromMem' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image
Error: Unresolved external '_HPDF_Image_GetSize' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image
Error: Unresolved external '_HPDF_Image_GetWidth' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image
Error: Unresolved external '_HPDF_Image_GetHeight' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image
Error: Unresolved external '_HPDF_Image_GetBitsPerComponent' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image
Error: Unresolved external '_HPDF_Image_GetColorSpace' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image
Error: Unresolved external '_HPDF_Image_SetColorMask' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image
Error: Unresolved external '_HPDF_Image_SetMaskImage' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image
Error: Unresolved external '_HPDF_Image_AddSMask' referenced from C:\WORK\HARBOUR\LIB\HBHPDF.LIB|image
Error: Unable to perform link
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: vertical position in preview

Posted: Sat May 14, 2022 11:01 AM

see
buildh.bat
and link the same libs

Regards



G. N. Rao.

Hyderabad, India
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: vertical position in preview

Posted: Sat May 14, 2022 11:47 AM
nageswaragunupudi wrote:see
buildh.bat
and link the same libs

I not have

Code (fw): Select all Collapse
echo %hdirl%\libhpdf.lib + >> b32.bc
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com