last source of rpreview

last source of rpreview

Postby Marcelo Via Giglio » Mon Mar 01, 2010 12:12 am

Hello,

I forgot to share the last source of preview with page orientation, here you can donwload it

http://www.box.net/shared/8lhxyymtga

regards

Marcelo
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: last source of rpreview

Postby Silvio » Mon Mar 01, 2010 5:06 pm

DO u SAW MINE MODIFIES i SENT YOU ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: last source of rpreview

Postby Marcelo Via Giglio » Tue Mar 02, 2010 4:13 pm

Silvio,

I saw some things, but I didn't nothing about, maybe I will take some time in the near future to see it with more detail, I'm sorry

regards

Marcelo
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: last source of rpreview

Postby Silvio » Tue Mar 02, 2010 6:06 pm

Application
===========
Path and name: C:\test_informe\test.Exe (32 bits)
Size: 2,060,800 bytes
Time from start: 0 hours 0 mins 6 secs
Error occurred at: 04/03/2010, 19:06:01
Error description: Error BASE/1082 Argument error: -
Args:
[ 1] = U
[ 2] = N 1

Stack Calls
===========
Called from: rpreview.prg => TPREVIEW:SETFACTOR(1530)
Called from: rpreview.prg => TPREVIEW:BUILDWINDOW(579)
Called from: rpreview.prg => TPREVIEW:NEW(132)
Called from: rpreview.prg => RPREVIEW(1675)
Called from: .\source\classes\REPORT.PRG => (b)TREPORT:NEW(180)
Called from: .\source\classes\REPORT.PRG => TREPORT:ACTIVATE(873)
Called from: test.prg => GEN_REPORT(995)
Called from: test.prg => (b)NEW_REPORT(855)
Called from: .\source\classes\BUTTON.PRG => TBUTTON:CLICK(176)
Called from: .\source\classes\CONTROL.PRG => TBUTTON:HANDLEEVENT(1427)
Called from: .\source\classes\WINDOW.PRG => _FWH(3347)
Called from: => SENDMESSAGE(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:COMMAND(407)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT(928)
Called from: => DIALOGBOXINDIRECT(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273)
Called from: test.prg => NEW_REPORT(906)
Called from: test.prg => (b)OPEN_TABLE(162)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:CLICK(445)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP(631)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONDOWN(576)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1469)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT(1295)
Called from: .\source\classes\WINDOW.PRG => _FWH(3347)
Called from: => WINRUN(0)
Called from: .\source\classes\WINDOW.PRG => TMDIFRAME:ACTIVATE(966)
Called from: VisorDBF.Prg => VISOR(71)
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: last source of rpreview

Postby byte-one » Mon Oct 04, 2010 2:43 pm

Hello Marcelo, the temporarely files from "create_minipage" in the temp-folder are not erased or released!
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: last source of rpreview

Postby Marcelo Via Giglio » Mon Oct 04, 2010 3:13 pm

Günther,

if I remember, the mini-pages are created in memory not in disk

regards

Marcelo
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: last source of rpreview

Postby byte-one » Mon Oct 04, 2010 3:54 pm

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?
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: last source of rpreview

Postby Marcelo Via Giglio » Tue Oct 05, 2010 2:37 am

Günther,

the EMF are created by tprinter class, the preview only open it,

Create_minipage open the emf and copy it into bmp (in memory), the problem about erase the emf can be in other place

Code: Select all  Expand view

//------------------------------------------------------------------------------
FUNCTION Create_minipage( cEmf, nWidth, nHeight )
//------------------------------------------------------------------------------

   local hDC1 := GetDC( GetDesktopWindow() )
   local hDC := CreateCompatibleDC( hDC1 )
   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( hEMF )

   SelectObject( hDC, hOldBmp )
   DeleteDC( hDC )

RETURN( hBmp )
 


and I am sorry I did't work more in the preview, but I will try to get more time to do others improves :-)

saludos

Marcelo


byte-one wrote: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?
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: last source of rpreview

Postby Silvio » Wed Oct 06, 2010 11:56 am

Marcelo,
I sent you also mine features for create multipages( 2x4x6x8x10) as winword preview , have you insert it on new release ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: last source of rpreview

Postby Marcelo Via Giglio » Thu Oct 07, 2010 2:31 am

Sorry Silvio I didn't it
Marcelo Via Giglio
 
Posts: 1064
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: last source of rpreview

Postby Silvio.Balcony » Sun Oct 10, 2010 8:35 am

I have started with a new preview with ribbonbar based on this code

i will publish here when ready
Silvio.Balcony
 
Posts: 4
Joined: Mon Aug 23, 2010 7:37 am

Re: last source of rpreview

Postby Silvio » Mon Oct 11, 2010 6:15 pm

Silvio.Balcony wrote:I have started with a new preview with ribbonbar based on this code

i will publish here when ready


Someone ask me If I..am you!!! :)
Can you change your username or post your photo ?
thanks
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: last source of rpreview

Postby mgsoft » Fri Dec 31, 2010 7:23 pm

Hi,

Any news?

Thanks ;)
Saludos,

Eduardo
User avatar
mgsoft
 
Posts: 422
Joined: Mon Aug 17, 2009 12:18 pm
Location: España


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 108 guests