PRINT oPrn FILE "test.pdf"
PRINT oPrn PREVIEW FILE "test.pdf:
REPORT oRep TO FILE "test.pdf"
// or
REPORT oRep PRVIEW TO FILE "test.pdf"
REQUEST FWHARU
function Main()
TPrinter():lUseHaruPDF := .T.
Do I need a newer version of FiveWin?
Do I need a change in my mak file?
echo %hdirl%\hbhpdf.lib + >> b32.bc
echo %hdirl%\libhpdf.lib + >> b32.bc
TPrinter():lUseHarufPDF := .t.
#include "fivewin.ch"
REQUEST FWHARU
function Main()
TPrinter():lUseHaruPDF := .t.
TestHaru()
return nil
Function TestHaru()
local oPrn, oFont
local cFile := "TestPdf" + cValToChar( Int( Seconds() ) ) + ".pdf"
PRINT oPrn FILE cFile
DEFINE FONT oFont NAME "ARIAL" SIZE 0,-30 OF oPrn
PAGE
@ 1, 1 PRINT TO oPrn TEXT "Hello World" SIZE 7,1 INCHES FONT oFont
ENDPAGE
ENDPRINT
RELEASE FONT oFont
ShellExecute( 0, "Open", cFile )
return nil
Turbo Incremental Link 6.98 Copyright (c) 1997-2023 Embarcadero Technologies, Inc.
Error: 'C:\FWH2310\LIB\XHB\HARUPDF.LIB' contains invalid OMF record, type 0x21 (possibly COFF)
Link Error
byron.hopp wrote:"before executing PRINT command."
"Not inside PRINT/ENDPRINT"
I don't exactly understand how this work. But it does. Does this flag (lUseHaruPDF) stay true until it is set back to false, or do you need to set it everytime. Why does it not get set back to false when you initiate the "Print oPrn..." command?
Byron ...
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: PabloHarbour and 48 guests