HTML Report - is there a reason nobody cares?

HTML Report - is there a reason nobody cares?

Postby Otto » Mon Aug 02, 2021 8:07 am

Hello friends,
Is there a reason why - apart from a lack of time - nobody is seriously interested in HTML as a report definition language here?

Sometimes you yourself believe that something is good and overlook things in the process.

I look forward to your feedback.

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Re: HTML Report - is there a reason nobody cares?

Postby anserkk » Mon Aug 02, 2021 8:55 am

I am not very much clear about the concept of HTML report.
The tools required to create the HTML report ?
The tools required to view/display the HTML report inside the FiveWin application ? Maybe using Shellexecute( NIL, "open", cHtmlFile )

From the scattered information available in this forum, what I understand is that we have to prepare a template in html format first (maybe using Word or some HTML editors) and later from the application we replace the data using StrTran() in the HTML file. If it is so, how do we prepare an invoice in HTML where the number of line items are dynamic ? (May be inserting a whole table itself onto the HTML )

I am not sure whether I understood the concept correctly
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: HTML Report - is there a reason nobody cares?

Postby joseluispalma » Mon Aug 02, 2021 9:26 am

Hello Otto,

Thank you very much for your efforts, but I don't see it useful. The customer wants to be able to customize reports and documents. That is what a WYSIWYG type editor like Word, Easy Report or FastReport allows. That is the dominant direction of the FWH community.

Thank you.
joseluispalma
 
Posts: 109
Joined: Mon Apr 30, 2012 9:10 am

Re: HTML Report - is there a reason nobody cares?

Postby Marc Vanzegbroeck » Mon Aug 02, 2021 9:36 am

Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: HTML Report - is there a reason nobody cares?

Postby Enrico Maria Giordano » Mon Aug 02, 2021 10:37 am

Otto wrote:Hello friends,
Is there a reason why - apart from a lack of time - nobody is seriously interested in HTML as a report definition language here?

Sometimes you yourself believe that something is good and overlook things in the process.

I look forward to your feedback.

Best regards,
Otto


I'm already using HTML to print reports from web applications since years. For desktop I prefer FWH TPrinter and TReport, maximum power and versatility.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: HTML Report - is there a reason nobody cares?

Postby Otto » Mon Aug 02, 2021 12:52 pm

@Anser
Dear Anser,
Thank you for your contribution, and greetings from us to all of you.
Has Ayen started programming?

I can't describe it better.

page break

I solve the page break similar to EasyReport.
I specify an area height and then count the loops and make a break when it is reached.
Code: Select all  Expand view
    // insert a table
    cHtml += memoread("table_th.htm")
    for I := 1 to 25
        if I = 10
            cText := "</table>" + CRLF
            cText += "<div style='page-break-after: always;'></div>" + CRLF
            cText += "<div>&nbsp;" + CRLF
            cText += "</div>" + CRLF
            cText += "<table>" + CRLF
            cText += "Second page (This will be printed in the second page)" + CRLF
            cHtml += cText
        endif
   
        cText := "<tr>" + CRLF
        cText += "<td>Nr. " + str(I) + "</td>" + CRLF
        cText += "<td>Represent a machine-readable format of the &lt;time&gt; element</td>" + CRLF
        cText += "</tr>" + CRLF  
        cHtml += cText
    next
   
    cHtml += memoread("table_end.htm")
   
    cText := "<div style='break-after:page'></div>" + CRLF
   
    cText += " page (This will be printed in the second page)" + CRLF
    cHtml += cText
    memowrit(cHtmlOrUrl, cHtml)
   
    PrintHtml(cHtmlOrUrl,1,.t.)

But I think that if Cristobal releases the Edge based web control, then you can easily check it with javascript.

With HTML as output format for the reports, you can easily do everything with standard software.
Open with WORD and export to EXCEL, ...

@Jose
You can also use a designer with HTML. There are so many options here that one currently has the problem of choosing the best (online-offline) and easiest option.
Take the invoice that Leandro posted. Do you really seriously believe that you can let an end user get in with the WYSIWYG editor and make changes?

@Mark, I sent you my email address yesterday. Just send me the test - prg.

@Endico, "maximum power and versatility" that's just an assertion that you have to prove in a comparison and competition. :-)
I know you are a superb web programmer.

Let's make a list of the appearance of the reports, simplicity of the source code, time it takes to create the reports, etc. and start the race.

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Re: HTML Report - is there a reason nobody cares?

Postby Marc Vanzegbroeck » Mon Aug 02, 2021 2:18 pm

Otto,

Where did you send you your email to?

Otto wrote:@Anser


@Mark, I sent you my email address yesterday. Just send me the test - prg.


Otto
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: HTML Report - is there a reason nobody cares?

Postby Otto » Mon Aug 02, 2021 2:25 pm

Hello Marc,
to your company address.
I resend it.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Re: HTML Report - is there a reason nobody cares?

Postby Marc Vanzegbroeck » Mon Aug 02, 2021 2:36 pm

Otto,

I didn't received anything.

Did you send it to marc at vms dot be ?
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: HTML Report - is there a reason nobody cares?

Postby Enrico Maria Giordano » Mon Aug 02, 2021 3:10 pm

Otto wrote:@Endico, "maximum power and versatility" that's just an assertion that you have to prove in a comparison and competition. :-)


I already prove it because, as I said, I've been using HTML for years to write reports for web applications. At least to me, FWH TPrinter and TReport are the best for desktop applications.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: HTML Report - is there a reason nobody cares?

Postby Otto » Mon Aug 02, 2021 3:14 pm

Hello Marc,
can't you answer the mail where I sent you the program first?
Anyway it ist otto at atzwanger dot com

Best regards,
Otto

I attach the picture from page-break here. I forgot in my previose post.

Code: Select all  Expand view
   // insert a table
    cHtml += memoread("table_th.htm")
    for I := 1 to 25
        if I = 10
            cText := "</table>" + CRLF
            cText += "<div style='page-break-after: always;'></div>" + CRLF
            cText += "<div>&nbsp;" + CRLF
            cText += "</div>" + CRLF
            cText += "<table>" + CRLF
            cText += "Second page (This will be printed in the second page)" + CRLF
            cHtml += cText
        endif
   
        cText := "<tr>" + CRLF
        cText += "<td>Nr. " + str(I) + "</td>" + CRLF
        cText += "<td>Represent a machine-readable format of the &lt;time&gt; element</td>" + CRLF
        cText += "</tr>" + CRLF  
        cHtml += cText
    next
   
    cHtml += memoread("table_end.htm")
   
    cText := "<div style='break-after:page'></div>" + CRLF
   
    cText += " page (This will be printed in the second page)" + CRLF
    cHtml += cText
    memowrit(cHtmlOrUrl, cHtml)
   
    PrintHtml(cHtmlOrUrl,1,.t.)



Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Re: HTML Report - is there a reason nobody cares?

Postby Otto » Mon Aug 02, 2021 3:24 pm

Hello Enrico,
I am sorry I was too fast with my answer.
I deleted my post.
I read your post again, and you write "At least to me".
OK.


Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Re: HTML Report - is there a reason nobody cares?

Postby Marc Vanzegbroeck » Mon Aug 02, 2021 3:28 pm

Otto,

I think you are mistaking with someone else. I Think you mean Marc Venken, that's another Marc from Belgium :D

I will send you the test-prg by email.

Otto wrote:Hello Marc,
can't you answer the mail where I sent you the program first?
Anyway it ist otto at atzwanger dot com

Best regards,
Otto
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: HTML Report - is there a reason nobody cares?

Postby joseluispalma » Mon Aug 02, 2021 3:29 pm

Hello Otto,

Our users have been doing this for many years with FastReport. The problem is that it does not work on 64-bit applications and we would like to have technological sovereignty over all our source code.

Regards
joseluispalma
 
Posts: 109
Joined: Mon Apr 30, 2012 9:10 am

Re: HTML Report - is there a reason nobody cares?

Postby Enrico Maria Giordano » Mon Aug 02, 2021 3:31 pm

Otto wrote:Hello Enrico,
I am sorry I was too fast with my answer.
I deleted my post.
I read your post again, and you write "At least to me".
OK.


Best regards,
Otto


No problem. Anyway, I'm always open to change my mind for a better tool. Only, "better" is a very poorly defined word... :-)

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 35 guests