Search found 18 matches: deleteenhmetafile

Return to advanced search

Re: Calculate total pages

... +"Rg-Nr_" + ALLTRIM(str(oRechnung:nRgNR()))+"_"+ ALLTRIM(str(nFor))+".emf", .F.)        DeleteEnhMetafile(hMeta)EndPage(oDevice:hDC) The code snippet you provided appears to be written in a language similar to Harbour or xBase, used for ...
by Otto
Fri Nov 24, 2023 6:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 5878

ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos

... de proceso y no hay forma de borrarlos hasta que cierro la aplicación y la arranco nuevamente. He probado de todo para liberarlos, oPrn:end(), DeleteEnhMetafile(CloseEnhMetafile(hHand)), ferase(cFile) etc,ctc,etc. Con aplicaciones viejas de 16bits. el preview termina y los metafiles (*.wmf) ...
by rterraz
Mon Aug 06, 2018 7:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ARCHIVOS *.EMF DEL PREVIEW - Imposible borrarlos
Replies: 9
Views: 1490

Re: Ayuda DLL

Antonio, aquí la segunda parte: Error: Unresolved external '_HB_FUN_DRAWTHEMED' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DIALOG Error: Unresolved external '_HB_FUN_GETDLGBASEUNITS' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DIALOG Error: Unresolved external '_HB_FUN_CDLG2CHR' referenced from P...
by ricardog
Thu Aug 31, 2017 2:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 6358

wmf2emf problemi in compilazione

... ); hEMF = SetWinMetaFileBits( nSize, lpvData, 0, NULL ); HeapFree( GetProcessHeap(), 0, lpvData ); hEMF2 = CopyEnhMetaFile( hEMF, hb_parc( 2 ) ); DeleteEnhMetaFile( hEMF ); DeleteEnhMetaFile( hEMF2 ); DeleteMetaFile( hWMF ); } *
by Romeo
Wed Jan 20, 2016 4:59 pm
 
Forum: All products support
Topic: wmf2emf problemi in compilazione
Replies: 0
Views: 568

Re: PDF error pops up again

Tim, Besides the above checking, we have only changed this in source/function/prv2pdf.prg: // CloseEnhMetafile( hEMF ) // commented out 2014-02-13 DeleteEnhMetafile( hEMF ) // inserted 2014-02-13 and this code in source/classes/printer.prg:        elseif "pdf" $ Lower( ...
by Antonio Linares
Thu Jun 12, 2014 7:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: PDF error pops up again
Replies: 13
Views: 2818

New FTDN February/Febrero 2014 (FWH 14.02)

... the method was returning NIL when bPastEof is defined and called. Fixed now. * Improement: prv2pdf.prg: Call to CloseEnhMetafile() is replaced by DeleteEnhMetaFile() to properly release the Emf handle. See: http://forums.fivetechsupport.com/viewtopic.php?f=3&t=27978&p=156635&hilit=deleteenhmetafile#p156635 ...
by Antonio Linares
Mon Mar 10, 2014 6:07 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN February/Febrero 2014 (FWH 14.02)
Replies: 2
Views: 1622

Re: Antonio: "BUG" in TPrinter

OK, but usíng CloseEnhMetaFile() frees not the emf-files to let them erasing! We must use DeleteEnhMetafile( hEMF ) in the function Emf2Jpeg(...)! Another negative issue from this function is the dependency from the resolution of the Printer-Driver. It should in all ...
by byte-one
Mon Feb 03, 2014 9:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Antonio: "BUG" in TPrinter
Replies: 14
Views: 4965

Re: Antonio: "BUG" in TPrinter

Antonio, I found a solution: 1. In Emf2Jpeg() instead of CloseEnhMetafile() using DeleteEnhMetafile()! In this function should also inserted a sysrefresh(). Then i can produce hundreds of pages without Problems! 2. In FWSavePreviwToPDF() before returning oDevice:end() ...
by byte-one
Wed Jan 22, 2014 8:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Antonio: "BUG" in TPrinter
Replies: 14
Views: 4965

Re: last source of rpreview

... more time to do others improves :-) saludos Marcelo 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?
by Marcelo Via Giglio
Tue Oct 05, 2010 2:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: last source of rpreview
Replies: 12
Views: 2704

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?
by byte-one
Mon Oct 04, 2010 3:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: last source of rpreview
Replies: 12
Views: 2704

Inconvenientes con printer - rpreview - SOLUCIONADO

... aplicación de FW20 a FWH712 o FWH811. El caso es que, cuando emito los reportes, al finalizar estoy recibiendo un mensaje proveniente de la rutina deleteenhmetafile . He rastreado el error hasta el archivo metafi32.C y no me ha sido posible corregirlo. Agradecería muchísimo si pueden darme una ...
by Armando Picon
Fri Jul 09, 2010 9:27 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Inconvenientes con printer - rpreview - SOLUCIONADO
Replies: 17
Views: 3581

Re: La previsualización de un reporte se puede envar por mail?

Armando,

En la clase Rpreview, busca el metodo ::printprv(). Alla es donde se borra los metafiles ->DeleteEnhMetafile( hMeta ). Puedes tratarlo como quiera, p.e. hacer una copia a una carpeta, enviarlos, ... y borrarlos luego claro :-)

Ciao.
C.
by Carles
Fri May 07, 2010 8:34 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: La previsualización de un reporte se puede envar por mail?
Replies: 6
Views: 2088

Re: preview alpha 2

... ) 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 // Current page StartPage( oDevice:hDC ) hMeta := ::oMeta1:hMeta #ifdef ...
by dobfivewin
Thu Jan 14, 2010 10:08 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: preview alpha 2
Replies: 2
Views: 2033

Re: GetPrintDC()

... 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 // Current page StartPage(oDevice:hDC) hMeta := oMeta1:hMeta #ifdef __CLIPPER__ ...
by jbrita
Tue Nov 24, 2009 11:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: GetPrintDC()
Replies: 4
Views: 2708

... 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 // Current page StartPage(oDevice:hDC) hMeta := oMeta1:hMeta #ifdef __CLIPPER__ ...
by Manuel Valdenebro
Thu Feb 28, 2008 4:30 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: RPREVIEW modificada por Manuel Valdenebro ?
Replies: 8
Views: 3362
Next

Return to advanced search