... cUniqueID, , .F. , Setup():PDFPrinter, .F. , .F. )
StartDoc(oDevice:hDC, oDevice:cDocument )
StartPage( oDevice:hDC )
hMeta := GetEnhMetaFile(aFiles[nFor])
PlayEnhMetaFile( oDevice:hDC, hMeta,, .t. )
oDevice:hDCOut := oDevice:hDC
oDevice:CmSay( Setup():RgNr_ROW2, Setup():RgNr ...
Search found 9 matches: getenhmetafile
Searched query: getenhmetafile
- Fri Nov 24, 2023 6:24 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Calculate total pages
- Replies: 32
- Views: 9620
- Thu Aug 31, 2017 2:56 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Ayuda DLL
- Replies: 24
- Views: 8578
Re: Ayuda DLL
... MSGBAR
Error: Unresolved external '_HB_FUN_STRETCHBLT' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|MSGBAR
Error: Unresolved external '_HB_FUN_GETENHMETAFILE' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|TMETAFIL
Error: Unresolved external '_HB_FUN_MEMOLINE' referenced from P:\32BITS\FWH\LIB\FIVEHX ...
Error: Unresolved external '_HB_FUN_STRETCHBLT' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|MSGBAR
Error: Unresolved external '_HB_FUN_GETENHMETAFILE' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|TMETAFIL
Error: Unresolved external '_HB_FUN_MEMOLINE' referenced from P:\32BITS\FWH\LIB\FIVEHX ...
- Tue Oct 05, 2010 2:37 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: last source of rpreview
- Replies: 12
- Views: 3176
Re: last source of rpreview
... 41; local hBmp := CreateCompatibleBitmap( hDC1, nWidth, nHeight ) local hOldBmp := SelectObject( hDC, hBmp ) local hEMF := GetEnhMetaFile( cEmf ) Rectangle( hDC, 0, 0, nHeight, nWidth ) MyPlayEnhMetaFile( hDC, hEMF, 0, 0, nHeight, nWidth ) CloseEnhMetafile ...
- Mon Oct 04, 2010 3:54 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: last source of rpreview
- Replies: 12
- Views: 3176
Re: last source of rpreview
Marcelo,
it seems not so! If I change in function create_minipage() closeenhmetafile(hEMF) to deleteenhmetafile(hEmf) the files are deleted at end of preview. (or getenhmetafile(cFile) not releases the handle from cFile??)
Have you a new version?
it seems not so! If I change in function create_minipage() closeenhmetafile(hEMF) to deleteenhmetafile(hEmf) the files are deleted at end of preview. (or getenhmetafile(cFile) not releases the handle from cFile??)
Have you a new version?
- Thu Jan 14, 2010 10:08 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: preview alpha 2
- Replies: 2
- Views: 2173
Re: preview alpha 2
... nFor ] )
PlayMetaFile( oDevice:hDC, hMeta )
DeleteMetafile( hMeta )
EndPage( oDevice:hDC )
#else
StartPage( oDevice:hDC )
hMeta := GetEnhMetaFile( aFiles[ nFor ] )
PlayEnhMetaFile( oDevice:hDC, hMeta,, .t. )
DeleteEnhMetafile( hMeta )
EndPage( oDevice:hDC )
#endif
next
case nOption ...
PlayMetaFile( oDevice:hDC, hMeta )
DeleteMetafile( hMeta )
EndPage( oDevice:hDC )
#else
StartPage( oDevice:hDC )
hMeta := GetEnhMetaFile( aFiles[ nFor ] )
PlayEnhMetaFile( oDevice:hDC, hMeta,, .t. )
DeleteEnhMetafile( hMeta )
EndPage( oDevice:hDC )
#endif
next
case nOption ...
- Tue Nov 24, 2009 11:29 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: GetPrintDC()
- Replies: 4
- Views: 2952
Re: GetPrintDC()
... GetMetaFile(aFiles[nFor])
PlayMetaFile( oDevice:hDC, hMeta )
DeleteMetafile(hMeta)
EndPage(oDevice:hDC)
#else
StartPage(oDevice:hDC)
hMeta := GetEnhMetaFile(aFiles[nFor])
PlayEnhMetaFile( oDevice:hDC, hMeta,, .t. )
DeleteEnhMetafile(hMeta)
EndPage(oDevice:hDC)
#endif
NEXT
case nOption == 2 ...
PlayMetaFile( oDevice:hDC, hMeta )
DeleteMetafile(hMeta)
EndPage(oDevice:hDC)
#else
StartPage(oDevice:hDC)
hMeta := GetEnhMetaFile(aFiles[nFor])
PlayEnhMetaFile( oDevice:hDC, hMeta,, .t. )
DeleteEnhMetafile(hMeta)
EndPage(oDevice:hDC)
#endif
NEXT
case nOption == 2 ...
- Thu Feb 28, 2008 4:30 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: RPREVIEW modificada por Manuel Valdenebro ?
- Replies: 8
- Views: 3759
- Thu May 17, 2007 6:57 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Error ao atualizar para FWH 7.04
- Replies: 29
- Views: 11423
- Fri Jan 06, 2006 11:37 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: How reduce the size of metafile in printer
- Replies: 1
- Views: 1040
I have solved the problem
... CLASS TPrinter
Local hMeta,oRect
Local aData:=PrnGetSize( ::hDC )
IF ! FILE( cFile )
Return nil
Endif
SaveDC( ::hDCOut )
hMeta:=GetEnhMetaFile( cFile )
::SetIsoTropicMode()
::SetWindowExt( aData[1], aData[2] )
::SetViewPortExt( aData[1], aData[2] )
SetViewOrg( ::hDCOut, -1, -1 ...
Local hMeta,oRect
Local aData:=PrnGetSize( ::hDC )
IF ! FILE( cFile )
Return nil
Endif
SaveDC( ::hDCOut )
hMeta:=GetEnhMetaFile( cFile )
::SetIsoTropicMode()
::SetWindowExt( aData[1], aData[2] )
::SetViewPortExt( aData[1], aData[2] )
SetViewOrg( ::hDCOut, -1, -1 ...