add a line in the print report

add a line in the print report

Postby Silvio.Falconi » Tue Dec 12, 2023 9:49 am

in a Report type printout created with the Treport class and printed from an Xbrowse table I have this problem:

Image

After the text "Provincia:AG" there is a list of cities

I would like to add a white line after the text "Provincia:AG"

I create the prints using xbrowse's method Report()

Code: Select all  Expand view  RUN
 oBrw:Report( cTitle, , , ;
         { |oRep, oBrw| MySetUp( oRep, oBrw, oDbf,aGroup,nGroup,lEject,aCampi ) } )
 


on MySetup function I insert the Group sintax


Code: Select all  Expand view  RUN
AAdd(oRep:aGroups,trGroup():New( bCampo2( afields, nGroup,oDbf ),;    //campo
           {|| aGroup[nGroup]+" :"+oRep:aGroups[1]:cValue},;                       //header
           {|| "Totale "+aGroup[nGroup]+": "+oRep:aGroups[1]:cValue+" ("+ltrim(str(oRep:aGroups[1]:nCounter))+")"},; //footer
           {|| 1 },;   // Font
           .f.,oRep))     //leject
           oRep:bPostGroup :=  { || oRep:Newline() }


I wish the Line after the header {|| aGroup[nGroup]+" :"+oRep:aGroups[1]:cValue},;

How I can resolve ?

I allready try with oRep:bStartGroup := { || oRep:Newline() } NOT RUN OK
If I insert oRep:bStartLine := { || oRep:Newline() } then inser newline after the header but insert lines also another part ( each line od records)

as you can see here

Image
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7070
Joined: Thu Oct 18, 2012 7:17 pm

Re: add a line in the print report

Postby Otto » Tue Dec 12, 2023 10:42 am

Hello friends,

Please keep in mind that this link is from 2019!

We haven't made any progress in printing.

I'm reposting this link.
Here, I made a similar report using ER.
However, since ER is not widely used and WebView2 is now available, it has become obsolete.
Built-in reports have limitations in design.

Therefore, the only future-proof solution appears to be HTML.

Additionally, users today are accustomed to web previews and interfaces that facilitate print management.

I understand Silvio may not favor this, but the forum isn't solely for addressing Silvio's questions.


We're dealing with a reporting issue, and HTML seems to be the only viable solution.

Best regards,
Otto

https://forums.fivetechsupport.com/viewtopic.php?f=3&t=36878&p=220051&hilit=report&sid=ef27e94b6ae09cac2fe0edf41b373041&sid=e4ca05efaa79715e24521ea475f31325#p220051
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6336
Joined: Fri Oct 07, 2005 7:07 pm

Re: add a line in the print report

Postby Silvio.Falconi » Tue Dec 12, 2023 11:16 am

Otto wrote:Hello friends,

Please keep in mind that this link is from 2019!

We haven't made any progress in printing.

I'm reposting this link.
Here, I made a similar report using ER.
However, since ER is not widely used and WebView2 is now available, it has become obsolete.
Built-in reports have limitations in design.

Therefore, the only future-proof solution appears to be HTML.

Additionally, users today are accustomed to web previews and interfaces that facilitate print management.

I understand Silvio may not favor this, but the forum isn't solely for addressing Silvio's questions.


We're dealing with a reporting issue, and HTML seems to be the only viable solution.

Best regards,
Otto

https://forums.fivetechsupport.com/viewtopic.php?f=3&t=36878&p=220051&hilit=report&sid=943731578469410f4c904676c3a8e3eb&sid=943731578469410f4c904676c3a8e3eb#p220051



>I understand Silvio may not favor this, but the forum isn't solely for addressing Silvio's questions.

yes of course BUT WHY YOU always reply with other topics below my questions ?


> We're dealing with a reporting issue, and HTML seems to be the only viable solution.

I didn't ask to create an HTML report and I don't use the web, if you want to use it don't bother me with your senseless answers please
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7070
Joined: Thu Oct 18, 2012 7:17 pm

Re: add a line in the print report

Postby Otto » Tue Dec 12, 2023 12:17 pm

Silvio, You are so fixated in your rejection.

HTML report has nothing to do with the web. It is for FIVEWIN.

Please understand that we need a solution for FIVEWIN.

What we currently have with the reports is unfortunately no longer contemporary.


Why do I post? We need a solution for the future.
And if the Fivewin team is bothered with the old stuff, then there is no time for further development.

One cannot close one's eyes to this.

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: 6336
Joined: Fri Oct 07, 2005 7:07 pm

Re: add a line in the print report

Postby Silvio.Falconi » Tue Dec 12, 2023 12:41 pm

Otto wrote:Silvio, You are so fixated in your rejection.

HTML report has nothing to do with the web. It is for FIVEWIN.

Please understand that we need a solution for FIVEWIN.

What we currently have with the reports is unfortunately no longer contemporary.


Why do I post? We need a solution for the future.
And if the Fivewin team is bothered with the old stuff, then there is no time for further development.

One cannot close one's eyes to this.

Best regards,
Otto



>Please understand that we need a solution for FIVEWIN.

Fivewin have all ready Treport and Tprinter power classes

>Silvio, You are so fixated in your rejection.

Otto, excuse me, but what do you think is the topic of my topic?

Is it "I want an html printout" or "I have a problem inserting a line in the report from xbrowse"?

Mr. Otto, by doing this you force everyone not to ask on the forum for help because the forum is unusable

Do you want to find a solution for fivewin and print html?

I didn't ask, when I ask then you can answer

I don't want to limit freedom of expression but this is not just a disease now you are obsessed with html as you were obsessed with ER but I have shown you that ER is leaking everywhere and how many people still use ER today?

when you ask for a certain topic I don't come to your topic and I reply with other topics instead you do it and distract other people from the main topic, in Italy this would be a criminal offense (constitutional law) when a person publicly forces them to distract them other subjects who intervened to discuss other topics for their own interests

In the long run, people identify and shun those who behave badly, those who are ready to trample on others for their own interests and those who do not care about other people's feelings.


an advice
It is easier to convey a new idea than to eliminate a deep-rooted belief. If you directly attack the deep-rooted idea, you paradoxically end up strengthening it, since the other will become defensive and defend his position at all costs. No one likes to admit they are wrong and feel stupid.

For this reason, it is advisable to present data and opinions in a way that is as similar as possible to the ideas of the interlocutor, seeking common ground from which to start our work of convincing.

E.g. if I want to persuade a supporter of local cuisine to dine in a French restaurant, it is useless to try to convince him that French cuisine is comparable or superior in quality to Italian cuisine, it will be better to provide arguments of a completely different type, for example the area of the city where the restaurant is located or the opportunity to taste a certain dish.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7070
Joined: Thu Oct 18, 2012 7:17 pm

Re: add a line in the print report

Postby karinha » Tue Dec 12, 2023 12:55 pm

Jesus Christ!! Be patient. Mister Otto, feel free to ask any topic. This FORUM is PUBLIC!!

¡¡Jesucristo!! Ser paciente. Señor Otto, no dude en preguntar cualquier tema. Este FORO es PÚBLICO.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7831
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: add a line in the print report

Postby Otto » Tue Dec 12, 2023 1:19 pm

Hello friends,
I think this could be a quick way to create reports:

1. Ask ChatGPT
2. Copy the source code from ChatGPT into the FIVEWIN program.
3. Run the report.

Image

Image

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

Re: add a line in the print report

Postby Silvio.Falconi » Tue Dec 12, 2023 1:37 pm

Otto wrote:Hello friends,
I think this could be a quick way to create reports:

1. Ask ChatGPT
2. Copy the source code from ChatGPT into the FIVEWIN program.
3. Run the report.

Image

Image

Image



if you need chatgpt to create an html report it means you are not a real programmer

Image

IT is easy DbftoHtml(Customer.dbf)
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7070
Joined: Thu Oct 18, 2012 7:17 pm

Re: add a line in the print report

Postby Otto » Tue Dec 12, 2023 2:09 pm

You're right, Silvio. It's a new discipline: Prompt engineering.
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6336
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Jimmy and 43 guests