FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index EasyReport, EasyDialog y EasyPreview La nueva apariencia de EasyReport
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: La nueva apariencia de EasyReport
Posted: Tue Oct 21, 2014 10:04 AM
cnavarro wrote:Manuel, he detectado lo siguiente:
Cuando se crea un nuevo item, primero lo crea y despu茅s muestra el cuadro de di谩logo de propiedades. Creo que deber铆a ser al rev茅s para poder cancelar la operacion y por lo tanto controlar el proceso

A煤n no subido ...
He cambiado lo siguiente y parece que funciona bien como tu dices ....
Code (fw): Select all Collapse
FUNCTION SetTextObj( oItem, nArea, i )
   .....
   if oItem:lVisible
      IF !Empty(  oER:aItems[nArea,i])   // a帽adido por si es nil
         oER:aItems[nArea,i]:End()
      endif

      oER:aItems[nArea,i] := ;
         TSay():New( oEr:nRulerTop + ER_GetPixel( oItem:nTop ), oER:nRuler + ER_GetPixel( oItem:nLeft ), ;
                     {|| oItem:cText }, oER:aWnd[ nArea ],, ;
                     oFont, lCenter, lRight, ( oItem:lBorder .OR. oGenVar:lShowBorder ), ;
                     .T., oER:GetColor( oItem:nColText ), oER:GetColor( oItem:nColPane ), ;
                     ER_GetPixel( oItem:nWidth ), ER_GetPixel( oItem:nHeight ), ;
                     .F., .T., .F., .F., .F. )
 --------
  
function NewItem( cTyp, nArea, nTmpCopyArea, nTmpCopyEntry, cTmpItemCopy )
.......

 IF oER:lNewFormat
      INI oIni FILE oER:cDefIni
         SET SECTION cAreaIni+"Items" ENTRY AllTrim(STR(nFree,5)) TO cItemDef OF oIni
      ENDINI
   else
      INI oIni FILE cAreaIni
          SET SECTION "Items" ENTRY AllTrim(STR(nFree,5)) TO cItemDef OF oIni
      ENDINI
   endif
   
   // movemos esto aqui y lo comentamos abajo 
   if cTyp <> "COPY"
      ItemProperties( i, nArea,, .T. )
   ELSE
      Add2Undo( "", nFree, nArea )
   endif

   ShowItem( nFree, nArea, cAreaIni, @aFirst, @nElemente )
Posts: 1078
Joined: Thu Sep 27, 2007 03:47 PM
Re: La nueva apariencia de EasyReport
Posted: Tue Oct 21, 2014 01:29 PM

Seria Interesante que todo se grabe en un solo archivo, y no como lo hace un VRD Y LOS V01'--V??

Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
Posts: 1078
Joined: Thu Sep 27, 2007 03:47 PM
Re: La nueva apariencia de EasyReport
Posted: Tue Oct 21, 2014 01:29 PM

Seria ..

Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
Posts: 1078
Joined: Thu Sep 27, 2007 03:47 PM
Re: La nueva apariencia de EasyReport
Posted: Tue Oct 21, 2014 01:33 PM
Pero este c贸digo supuesta mente activa la versi贸n de Eysareport antigua.



#include "FiveWin.ch"

function Main()

local cGeneralIni:= "c:\vrd.ini" +space(20)
local oDlg, oBtn,oGet

DEFINE DIALOG oDlg TiTle "Registrar EReport"

@ 2, 2 GET oget VAR cGeneralIni ACTION SetinGet( oGet )

@ 3, 4 BUTTON oBtn PROMPT "Registrar" ACTION Registrar( alltrim( cGeneralIni ) )

@ 3, 15 BUTTON "Salir" ACTION oDlg:End() CANCEL

ACTIVATE DIALOG oDlg CENTERED

return nil

//-----------------------------------------------------------------------------

Function Registrar( cGeneralIni )
local cSerial, cRegist, lOk
local cDrive := hb_CurDrive( cGeneralIni )+":\"


cSerial := alltrim(str(GetSerialHD( cDrive ) ))
cRegist := GetRegistKey( cSerial )
lok := CheckRegist( cSerial, cRegist, cGeneralIni )

if lok
msginfo("registro realizado")
else
msginfo("registro no realizado")
endif

Return nil

//-----------------------------------------------------------------------------

Function SetinGet( oget )
local cfile:= cGetFile( oget:cText )
if !empty(cFile)
oget:cText(cFile)
endif

Return nil

//-----------------------------------------------------------------------------

FUNCTION GetSerialHD( cDrive )

LOCAL cLabel := Space(32)
LOCAL cFileSystem := Space(32)
LOCAL nSerial := 0
LOCAL nMaxComp := 0
LOCAL nFlags := 0

DEFAULT cDrive := "C:\"

GetVolInfo( cDrive, @cLabel, Len( cLabel ), @nSerial, @nMaxComp, @nFlags, ;
@cFileSystem, Len( cFileSystem ) )

RETURN nSerial

DLL32 Function GetVolInfo( sDrive AS STRING, ;
sVolName AS STRING, ;
lVolSize AS LONG , ;
@lVolSerial AS PTR , ;
@lMaxCompLength AS PTR , ;
@lFileSystFlags AS PTR , ;
@sFileSystName AS STRING, ;
lFileSystSize AS LONG ) ;
AS LONG PASCAL ;
FROM "GetVolumeInformationA" ;
LIB "kernel32.dll"


//-----------------------------------------------------------------------------

FUNCTION CheckRegist( cSerial, cRegist, cGeneralIni )

LOCAL lOK := .F.

if !file( cGeneralIni )
msginfo("archivo ini no encontrado")
return .f.
endif

IF ALLTRIM( cRegist ) == GetRegistKey( cSerial )
WritePProString( "General", "RegistKey", ALLTRIM( cRegist ) , cGeneralIni )
lOK := .T.
ENDIF

RETURN ( lOK )


//-----------------------------------------------------------------------------

FUNCTION GetRegistKey( cSerial )

LOCAL cReg := ALLTRIM( STR( INT( ( VAL( ALLTRIM( cSerial ) ) * 167 ) * 4.12344 ), 30 ) )

cReg := SUBSTR( cReg + ALLTRIM( STR( 47348147489715610655, 30 ) ), 1, 12 )

cReg := CHR( VAL( SUBSTR( cReg, 8, 1 ) ) + 74 ) + ;
CHR( VAL( SUBSTR( cReg, 4, 1 ) ) + 68 ) + ;
CHR( VAL( SUBSTR( cReg, 2, 1 ) ) + 70 ) + ;
CHR( VAL( SUBSTR( cReg, 6, 1 ) ) + 66 ) + ;
SUBSTR( cReg, 5 )

RETURN ( cReg )



Saludos
Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: La nueva apariencia de EasyReport
Posted: Tue Oct 21, 2014 04:32 PM
ruben Dario wrote:Seria Interesante que todo se grabe en un solo archivo, y no como lo hace un VRD Y LOS V01'--V??
ruben Dario wrote:Pero este c贸digo supuesta mente activa la versi贸n de Eysareport antigua.

Saludos

驴?
No entiendo tu 驴 Pregunta? ... el nuevo formato crea un 煤nico archivo , es decisi贸n propia cual de los 2 usar. Para usar el nuevo formato .... si el reporte es nuevo escoges formato nuevo al crearlo . Si es un reporte viejo , primero lo exportas al nuevo formato , luego abres el nuevo archivo .
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: La nueva apariencia de EasyReport
Posted: Tue Oct 21, 2014 06:57 PM

Ruben, la implementacion de lo que comentas la ha realizado Manuel, mira

viewtopic.php?f=31t=29070start=180#p166177

&&

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1078
Joined: Thu Sep 27, 2007 03:47 PM
Re: La nueva apariencia de EasyReport
Posted: Tue Oct 21, 2014 08:56 PM

Gracias, quedo claro, lo 煤nico que veo que si borro un objeto del reporte y luego grabo , vuevo a carga el reporte pero no hace efecto los cambios.

Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: La nueva apariencia de EasyReport
Posted: Tue Oct 21, 2014 09:19 PM
Ruben , 驴 Hiciste el cambio en el codigo sugerido ? .

Code (fw): Select all Collapse
function ElementActions( oItem, i, cName, nArea, cAreaIni, cTyp )

......

oItem:bPostDelcontrol:= { || DelItemWithKey( i , nArea ) }  // a帽adir esta linea .
......
Posts: 1078
Joined: Thu Sep 27, 2007 03:47 PM
Re: La nueva apariencia de EasyReport
Posted: Wed Oct 22, 2014 12:32 AM

Perfecto mastintin, Hice el Cambio , funciono
Gracias , mastintin

Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: La nueva apariencia de EasyReport
Posted: Thu Oct 30, 2014 10:54 AM

he metido codigo que sincroniza la selecci贸n del tree con los elementos selecionados .Podemos selecionar un elemento y esto mueve el elmento selecionado en el tree y tambien podemos selecionar un elemento desde el tree.
He ocultado el panel derecho para buscar una versi贸n estable , sin cosas por completar.
Tenemos que buscar bugs y una vez corregidos colocar una versi贸n funcional que pueda sustituir la version de Tim .

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: La nueva apariencia de EasyReport
Posted: Wed Nov 26, 2014 05:43 PM

Dear mastintin,

I believe that we are all wrong,

FWH needs a simple report designer as fast report but in a more simple and intuitive.

I thought were upon to create for each report (order type or simple list) a window with a ButtonBar. In this window must be shown the sheet (a4 / a3) not divided by areas but the entire sheet

In this paper we could define areas eg page header, body, foot with their properties (length, width, on even pages on odd pages) and display them in paper box with a dotted line

Then there must be the property of the page (horizontal and vertical, paper size, margins, frame)
On these areas we could enter text and fields databases, graphic files, the box lines

Carles has done an excellent job: Carles has seen far away, in the report of carles you can see the whole sheet and not divided by areas.

In myrep designer would put the dialog's input to the properties of objects as they are in easyreport instead of inspector

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: La nueva apariencia de EasyReport
Posted: Wed Nov 26, 2014 06:03 PM

Dear mastintin,

this evening I'm trying to create a report ( italian order) with Er
I have many and many problems
Italian report type order is too different from all world formats
We need many fields
where I can sent you a test (made with hand) to see you what I need
Perhaps you can help to realize it with Er..

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: La nueva apariencia de EasyReport
Posted: Thu Nov 27, 2014 10:36 AM
Silvio.Falconi wrote:Dear mastintin,

this evening I'm trying to create a report ( italian order) with Er
I have many and many problems
Italian report type order is too different from all world formats
We need many fields
where I can sent you a test (made with hand) to see you what I need
Perhaps you can help to realize it with Er..


Estimado Silvio , lo que hemos hecho con Ereport es recoger un c贸digo ya escrito y desactualizado e intentar que compile correctamante con las nuevas librerias de FWH . Hemos intentado mantener "el espiritu" del desarrollo inicial ya que existen usuarios que lo tienen incorporado en su trabajo y le hemos a帽adido un nuevo formato de archivo que equivale fielmente al antiguo, pero contenido en un solo archivo . Siguen existiendo muchos errores que resolver como la selecci贸n de elementos y muchas cosas mas .
Evidentemente si partimos de un desarrollo CERO , posiblemente el enfoque ser铆a distinto y el dise帽ador de reportes que comenz贸 Paco fuera el camino a seguir o puede que otro distinto .
Por mi parte, decirte que mi trabajo nada tiene que ver con la programaci贸n hoy en d铆a, y en mi tiempo de libre o mas bien en mi tiempo en Paro ( la cosa est谩 dura en Espa帽a ) meto algunas lineas , pero nunca es un trabajo constante como requiere un desarrollo serio. Esta temporada me ha salido algo de trabajo
y tengo que coger el momento as铆 que como veras no se ha metido c贸digo nuevo , mas lejos de una peque帽a contribuci贸n en el c贸digo Gdi+ de fwh .
Lo siento :-) , no puedo ayudarte en este momento, pero si pones en el foro tu c贸digo seguro que alguien lo hace con gusto .
Un saludo y espero entiendas mi postura.
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: La nueva apariencia de EasyReport
Posted: Sun Nov 30, 2014 06:33 PM
Dear Mastintin, I worked a lot with making many ER report when it was still for sale by Timm, I found many difficulties to draw my report, first with ReR report then gxreport not know if you remember them ... then I went to fastreport also because already I used to work (the management of the school administrations use for printing fastreport), then I left the report to use and fast to devote MyRPt of charles and I was hoping that Charles would continue to work to improve it. In fact I thought and hoped that all of you are working to improve myrpt that runs well in win xp but has problems in win7 but it was only a hope .. you had to just change some small things like create the dialog object properties instead of using the class inspect and change the class tsection for loops ... I would have done with two lines diveramente orizontali within which fields automatically had to be repeated in a loop ..... then Antonio .. wanted to buy the work of Timm .. . but stable yet ... there's nothing really you cannot create a report such as this bill (I tried no success)

I init from the first sample we have on ER and I tried to modify it insert mine column and objects




Paper A4 ( margins 12,7)
I made a snapshot of all area I need ( see the vertical and horizontal numbers (mm)

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 1303
Joined: Tue Jul 21, 2009 08:12 AM
Re: La nueva apariencia de EasyReport
Posted: Mon Dec 01, 2014 04:57 PM

Manuel,

Muchas gracias por todo tu esfuerzo y dedicaci贸n. En efecto, la idea es arreglar EasyReport y dejarlo operativo.

Silvio, quiz谩s podr铆as contratar a Manuel para que realice un reporter seg煤n tus necesidades y las de tu cliente.

Muchas gracias.

Muchas gracias. Many thanks.



Un saludo, Best regards,



Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producci贸n]



Implementando MSVC 2010, FWH64 y ADO.



Abandonando uso xHarbour y SQLRDD.