AGB  ·  Datenschutz  ·  Impressum  







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

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 2  1 2      
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
Online

Registriert seit: 24. Okt 2006
Ort: Seifhennersdorf / Sachsen
5.316 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...
Angehängte Grafiken
Dateityp: png Attachment.png (11,8 KB, 50x aufgerufen)
  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.
Angehängte Grafiken
Dateityp: png Untitled.png (62,2 KB, 46x aufgerufen)
  Mit Zitat antworten Zitat
Benutzerbild von haentschman
haentschman
Online

Registriert seit: 24. Okt 2006
Ort: Seifhennersdorf / Sachsen
5.316 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 ?
Angehängte Grafiken
Dateityp: png Untitled.png (37,0 KB, 24x aufgerufen)
  Mit Zitat antworten Zitat
TurboMagic

Registriert seit: 28. Feb 2016
Ort: Nordost Baden-Württemberg
2.861 Beiträge
 
Delphi 12 Athens
 
#8

AW: Wie drucken Sie Name und Note in FASTREPORT?

  Alt 18. Sep 2020, 22:07
Have you already looked into the manual for FastReport?
The one for version 5 can be found here: https://www.fast-report.com/public_d...ntent_dyn.html

A more complete one for 4.6 can be found in PDF format here:
https://origin2.cdn.componentsource....rmanual-en.pdf
  Mit Zitat antworten Zitat
Benutzerbild von haentschman
haentschman
Online

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

AW: Wie drucken Sie Name und Note in FASTREPORT?

  Alt 19. Sep 2020, 08:57
Hi...

you want this?

Question:
How long you programming Delphi?

You should read this information:
StyleGuide: https://wiki.delphi-jedi.org/wiki/Pr...ge_Style_Guide
* naming of units, variables
* indentation
* readable names
CamelCase:
https://en.wikipedia.org/wiki/Camel_...er_programming

Your Project:

Do you want to learn something? ...ok.

Plus:
+ SQL with parameters

Minus:
- naming of the components/units -> Do yourself a favor with it. It is better readable.
- Never write hardcoded folders/files, access data into the connection. This belongs, partly encrypted, into an INI file or into the registry.
Code:
object Conn: TFDConnection
    Params.Strings = (
      'Database=D:\Database Desktop\BaseDonee\SCOLAIRE.FDB'
      'User_Name=SYSDBA'
      'Password=masterkey'
      'DriverID=FB')
    Connected = True
    LoginPrompt = False
    Left = 79
    Top = 22
  end
- Never use DB tables. Better use Querys.
- DateTime Edit without check. Better use a DateTimePicker...
- Creation of the Datamodule before creating Main form. (in DPR)
- use Anchors for the components http://docwiki.embarcadero.com/Libra...ontrol.Anchors
- Firebird has a function for reading the new ID https://firebirdsql.org/refdocs/lang...21-insert.html
- write the code or/and names better in english.

what i do:
* formatting
* naming
* SQL was wrong
* assignment of the query to the report
* delete unused report datasets
* editing report
Angehängte Grafiken
Dateityp: png Preview.png (14,3 KB, 24x aufgerufen)
Angehängte Dateien
Dateityp: zip BaseDonee.zip (129,5 KB, 7x aufgerufen)

Geändert von haentschman (19. Sep 2020 um 10:57 Uhr)
  Mit Zitat antworten Zitat
Alg2009

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

AW: Wie drucken Sie Name und Note in FASTREPORT?

  Alt 19. Sep 2020, 10:28
Hi...

you want this?

Question:
How long you programming Delphi?
About Year

https://www.delphipraxis.net/attachm...rt-preview.png

Yes this is What i want like the picture how did you do that?

Geändert von Alg2009 (19. Sep 2020 um 10:31 Uhr)
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 1 von 2  1 2      


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 10:09 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