AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Datenbanken Wie drucken Sie Name und Note in FASTREPORT?

Wie drucken Sie Name und Note in FASTREPORT?

Ein Thema von Alg2009 · begonnen am 12. Sep 2020 · letzter Beitrag vom 25. Sep 2020
Antwort Antwort
Seite 1 von 4  1 23     Letzte » 
Alg2009

Registriert seit: 12. Sep 2020
16 Beiträge
 
Delphi 10.3 Rio
 
#1

Wie drucken Sie Name und Note in FASTREPORT?

  Alt 12. Sep 2020, 02:25
Datenbank: FireBird • Version: 3 • Zugriff über: FireDac
Hallo,
Wie wird der Name und die Lektion sowie die Note gedruckt, da immer die erste Note für alle Schüler in FASTREPORT gedruckt wird?

BaseDonee.rar

Geändert von Alg2009 (12. Sep 2020 um 02:33 Uhr)
  Mit Zitat antworten Zitat
Benutzerbild von haentschman
haentschman

Registriert seit: 24. Okt 2006
Ort: Seifhennersdorf / Sachsen
5.288 Beiträge
 
Delphi 12 Athens
 
#2

AW: Wie drucken Sie Name und Note in FASTREPORT?

  Alt 12. Sep 2020, 06:50
Hi...
Your translator for german is not good...

I cant understand what you want. Paint a picture of your problem and sending this as attachment. We must know, witch data schould printed where...

welcome here...
Miniaturansicht angehängter Grafiken
attachment.png  
  Mit Zitat antworten Zitat
Alg2009

Registriert seit: 12. Sep 2020
16 Beiträge
 
Delphi 10.3 Rio
 
#3

AW: Wie drucken Sie Name und Note in FASTREPORT?

  Alt 12. Sep 2020, 09:53

Hello haentschman
Entschuldigung für mein schlechtes Deutsch.

What i want to do is how display in FastReport the students(Nom, lesson(NomLecon) name and Grades(Not
My Problem is why when execute the program appear only the first Grade for all students
And I want to show every pupil with his own mark.
The relation between Tables(Etudiant,Lecon) is N,N
Angehängte Dateien
Dateityp: rar BaseDonee.rar (138,0 KB, 9x aufgerufen)
  Mit Zitat antworten Zitat
Benutzerbild von blawen
blawen

Registriert seit: 30. Nov 2003
Ort: Luterbach (CH)
654 Beiträge
 
Delphi 12 Athens
 
#4

AW: Wie drucken Sie Name und Note in FASTREPORT?

  Alt 12. Sep 2020, 10:00
Hi...
Your translator for german is not good...

I cant understand what you want. Paint a picture of your problem and sending this as attachment. We must know, witch data schould printed where...

welcome here...
Isn't the question simply about how all records are printed?
Gehts in der Frage nicht einfach darum, wie sämtliche Datensätze gedruckt werden?

Wenn ich es richtig interpretiere, werden in der Procedure TForm4.Button4Click die Daten aufbereitet.
Im Report werden aber die Daten von drei verschiedenen Querrys abgerufen, was so nicht funktionieren kann.
Roland
  Mit Zitat antworten Zitat
Alg2009

Registriert seit: 12. Sep 2020
16 Beiträge
 
Delphi 10.3 Rio
 
#5

AW: Wie drucken Sie Name und Note in FASTREPORT?

  Alt 12. Sep 2020, 13:22
[QUOTE=blawen;1473460]

Wenn ich es richtig interpretiere, werden in der Procedure TForm4.Button4Click die Daten aufbereitet.
Im Report werden aber die Daten von drei verschiedenen Querrys abgerufen, was so nicht funktionieren kann.
Wie funktioniert es?
Schauen Sie sich das Bild an, Sie werden sehen, dass die Schüler die gleiche Note wie der erste Schüler erhalten. Jeder Schüler sollte die Note bekommen, die er bekommt

Look at the picture, you will see that the students get the same Grade as the first student. Every student should get the grade they get.
Miniaturansicht angehängter Grafiken
untitled.png  
  Mit Zitat antworten Zitat
Benutzerbild von haentschman
haentschman

Registriert seit: 24. Okt 2006
Ort: Seifhennersdorf / Sachsen
5.288 Beiträge
 
Delphi 12 Athens
 
#6

AW: Wie drucken Sie Name und Note in FASTREPORT?

  Alt 13. Sep 2020, 06:13
Hi...
 SQL.Add('JOIN ETUDIANT E on EL.ID=EL.ID'); ...i think this line is wrong. 'on EL.ID=EL.ID'...the same field in the join.
 SQL.Add('JOIN ETUDIANT E on EL.ID=E.ID'); ...how about this?

notes:
* Dont use WITH. Then you have less debugging problems with missing variable values.
* why Close/Clear? If you use SQL.Text, the SQL.Clear automaticly executed. With FireDAC the Close is automaticly executed.
* U use FIREDAC with MACROS. The problem is...that, if you changing the database components, the new one not knows MACROS. And one line less...

imho better:
Delphi-Quellcode:
procedure TForm4.Button4Click(Sender: TObject);
begin
  dmdata.AFDQuery.SQL.Text := 'SELECT E.NOM,L.NOMLECON FROM ETUDLECON EL';
  dmdata.AFDQuery.SQL.Add('JOIN LECON L ON EL.ID=L.LECONID');
  dmdata.AFDQuery.SQL.Add('JOIN ETUDIANT E on EL.ID=EL.ID');
  dmdata.AFDQuery.SQL.Add('ORDER BY EL.ID,EL.LECONID');

  dmdata.AFDQuery.Open;

  DmData.frxReport1.ShowReport;
end;
  Mit Zitat antworten Zitat
Alg2009

Registriert seit: 12. Sep 2020
16 Beiträge
 
Delphi 10.3 Rio
 
#7

AW: Wie drucken Sie Name und Note in FASTREPORT?

  Alt 13. Sep 2020, 20:30
Thank you very much haentschman

But how can i put the result of the query in the FastReoprt when i Click on the Button ?
Miniaturansicht angehängter Grafiken
untitled.png  
  Mit Zitat antworten Zitat
Benutzerbild von haentschman
haentschman

Registriert seit: 24. Okt 2006
Ort: Seifhennersdorf / Sachsen
5.288 Beiträge
 
Delphi 12 Athens
 
#8

AW: Wie drucken Sie Name und Note in FASTREPORT?

  Alt 14. Sep 2020, 10:02
Hi...

Questions:
1. why you use 3 frxDatasets? One is enough.
2. where you load this datasets?
3. where you assign the query to this datasets?

  Mit Zitat antworten Zitat
Alg2009

Registriert seit: 12. Sep 2020
16 Beiträge
 
Delphi 10.3 Rio
 
#9

AW: Wie drucken Sie Name und Note in FASTREPORT?

  Alt 14. Sep 2020, 18:14
hello,

Hi...
1. why you use 3 frxDatasets? One is enough.
because i have two tables and query, and maybe add a calculated fields


Zitat:
2. where you load this datasets?
I load it in the FastReport

Zitat:
3. where you assign the query to this datasets?
Do you mean something like this
FrxDbdataset3.daset:= query1
  Mit Zitat antworten Zitat
generic

Registriert seit: 24. Mär 2004
Ort: bei Hannover
2.415 Beiträge
 
Delphi XE5 Professional
 
#10

AW: Wie drucken Sie Name und Note in FASTREPORT?

  Alt 14. Sep 2020, 20:01
there is also an english version of Delphi-Praxis:
https://en.delphipraxis.net/
  Mit Zitat antworten Zitat
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:46 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz