FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour printing jpg-file
Posts: 166
Joined: Wed Aug 29, 2012 08:25 AM
printing jpg-file
Posted: Fri Aug 30, 2013 03:30 PM

Hello,

Maintaining a FW program (active from +/- 2000) , i have to change a emf-file , see also mine previous posts.

With the help from Uwe , i have now a EMF file , converted from a pfd file obtained from the client.

Now , i try to change the program as :

# ifdef TEST
oPrn:SayImage(0,0,"b:\test\mclskop.jpg")
# else
oPrn:ImportWMF(MCLSKOP)
# endif

Where the jpg-file is scanned ( full page) . nView shows as print dimensions : 21.009 x 29.705 cm , A4 format
Paint 1191 x 1684 px

Printing this file i expect that this dimensions are respected . The result is a litle image in the topleft corner

Providing dimension parameters nWidth,nHeight (in pixels) does'n change nothing

Can an image file be used to print for this purposes ?

Frank

test
Posts: 166
Joined: Wed Aug 29, 2012 08:25 AM
Re: printing jpg-file : Solved
Posted: Fri Aug 30, 2013 03:42 PM

oPrn:SayImage( 0, 0, oImage , oPrn:nHorzres() , oPrn:nVertres() )

test

Continue the discussion