![]() |
Datenbank: FireBird • Version: 3 • Zugriff über: FireDac
Wie drucken Sie Name und Note in FASTREPORT?
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? ![]() |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Liste der Anhänge anzeigen (Anzahl: 1)
Hi...:P
Your translator for german is not good...:zwinker: 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...:thumb: :dp: welcome here... |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Liste der Anhänge anzeigen (Anzahl: 1)
:oops:
Hello haentschman Entschuldigung für mein schlechtes Deutsch. :oops: 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 |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Zitat:
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. |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Liste der Anhänge anzeigen (Anzahl: 1)
[QUOTE=blawen;1473460]
Zitat:
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. |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Hi...:P
Delphi-Quellcode:
...i think this line is wrong. :gruebel: 'on EL.ID=EL.ID'...the same field in the join.
SQL.Add('JOIN ETUDIANT E on EL.ID=EL.ID');
Delphi-Quellcode:
...how about this? :wink:
SQL.Add('JOIN ETUDIANT E on EL.ID=E.ID');
notes: * Dont use WITH. Then you have less debugging problems with missing variable values. :wink: * 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...:zwinker: 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; |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Liste der Anhänge anzeigen (Anzahl: 1)
Thank you very much haentschman
But how can i put the result of the query in the FastReoprt when i Click on the Button ? |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Hi...:P
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? :wink: |
AW: Wie drucken Sie Name und Note in FASTREPORT?
hello,
Zitat:
Zitat:
Zitat:
FrxDbdataset3.daset:= query1 |
AW: Wie drucken Sie Name und Note in FASTREPORT?
|
AW: Wie drucken Sie Name und Note in FASTREPORT?
Zitat:
I meant only help generic i didn't see the english version of Delphi-Praxis before i post this topic here I ask to move the topic to its rightful place . |
AW: Wie drucken Sie Name und Note in FASTREPORT?
By the way: FastReports themselves provide forums as well!
|
AW: Wie drucken Sie Name und Note in FASTREPORT?
I need your help :cry:
|
AW: Wie drucken Sie Name und Note in FASTREPORT?
Hello,
I still need your help haentschman :cry: |
AW: Wie drucken Sie Name und Note in FASTREPORT?
I am at Work...at Weekend. :wink:
|
AW: Wie drucken Sie Name und Note in FASTREPORT?
Which of your issues does still exist?
|
AW: Wie drucken Sie Name und Note in FASTREPORT?
Zitat:
![]() The problem is my program it shows the first mark for all students and i want to show to every student its mark in the FastReport when i click on the button Impression(print) it show the result of the query in the FastReoprt |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Have you already looked into the manual for FastReport?
The one for version 5 can be found here: ![]() A more complete one for 4.6 can be found in PDF format here: ![]() |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Liste der Anhänge anzeigen (Anzahl: 2)
Hi...:P
you want this? Question: How long you programming Delphi? You should read this information: StyleGuide: ![]() * naming of units, variables * indentation * readable names CamelCase: ![]() Your Project: Do you want to learn something? :zwinker: ...ok. Plus: + SQL with parameters :thumb: Minus: - naming of the components/units -> Do yourself a favor with it. It is better readable. :zwinker: - Never write hardcoded folders/files, access data into the connection. This belongs, partly encrypted, into an INI file or into the registry. :warn:
Code:
- Never use DB tables. Better use Querys. :warn:
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 - DateTime Edit without check. Better use a DateTimePicker...:wink: - Creation of the Datamodule before creating Main form. (in DPR) - use Anchors for the components ![]() - Firebird has a function for reading the new ID ![]() - write the code or/and names better in english. :zwinker: what i do: * formatting * naming * SQL was wrong * assignment of the query to the report * delete unused report datasets * editing report |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Zitat:
![]() Yes this is What i want like the picture how did you do that? |
AW: Wie drucken Sie Name und Note in FASTREPORT?
...see previous post. :zwinker:
Three Questions: 1. you programming for yourself? 2. you use a version control system? 3. which delphi version do you use -> add this to your profile. :wink: |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Zitat:
|
AW: Wie drucken Sie Name und Note in FASTREPORT?
Zitat:
Zitat:
![]() GIT TortoiseGIT install: ![]() ...if you want "command line", you found more videos/tutorials. |
AW: Wie drucken Sie Name und Note in FASTREPORT?
What do I do with the TortoiseGIT!?
I no longer understand what you mean?:gruebel: i have a simple question and you have the answer why don't you give me the answer instead of asking me to install program that I don't want |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Hi...
Zitat:
![]() Zitat:
...i am out. :? |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Zitat:
i didn't see The attached file in the previous reply I benefited a lot from you and learned new things like "TfoSettings" Which I did not understand and why you added a new Unit? I will try to understand it thank you very very match haentschman for your help |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Liste der Anhänge anzeigen (Anzahl: 1)
Believe me, you gave me a code that I've never seen before so understanding it sounds difficult.
You have added things that I did not know like(New unit) Now i understand you why you asked about 'Version control System' I'll be in hiding for two or three days to understand what you explained to me earlier and I'm back By the way the code did not work |
AW: Wie drucken Sie Name und Note in FASTREPORT?
you can remove these 5 Units from the uses that are underlined.
Grüße Klaus |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Sorry. :oops: These units mad* was automatic add to the project. This is a tool to finding errors... I should have to delete them for you.
Zitat:
Zitat:
![]() naming: * All components should have a prefix. 2 to 4 signs. example: fo = Form, edt = Edit, mem = Memo and so on... You can choose it yourself. previos Unit6 -> Settings only the name has changed! previos TForm6 -> TfoSettings only the name has changed! ![]() SQL was wrong: ...you can see (btnParamètresClick) assignment of the query to the report:
Delphi-Quellcode:
delete unused report datasets:
dmData.frxDatasetReportMaster.DataSet := dmData.qryReport;
dmData.frxEtudiant.ShowReport; ...from the DatamoduleEtudiant. editing report: New names assigned to the report. |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Hello,
Zitat:
I almost visit GitHub website and i didn't know it is a repository :oops: thank you for all the information that will help me in the future There is only one last question You said Zitat:
We write two queries the first to show the students and their grades And the other to show the students and their group or only one query ? because if we write one query the result it will be wrong
Code:
SELECT E.ID, E.NOM, E.PRENOM, GroupName,LE.NOMLECON, LE.NOTE FROM ETUDIANT E
JOIN ETUDLECON LO ON E.ID = LO.ID JOIN LECON LE ON LO.LECONID = LE.LECONID JOIN Group G ON G.GroupID = E.GroupID |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Liste der Anhänge anzeigen (Anzahl: 1)
Hi...:P
Zitat:
![]() Zitat:
With a table all records are always read...even those from 10 years ago. :zwinker: With a qery you can get only the records of the last year...if you want. :thumb: Otherwise the "operation" is the same... Zitat:
Zitat:
SQL information (you know): ![]() Database information: ![]() Zitat:
You don't have to use it. But you can use it to view the changes since the last save in the repositoriy. See picture1. More important is that you can reset the changes. :thumb: GIT is decentralized. You have one repository locally and one "copy" externally (GitHub, BitBucket) You start only locally with GIT. (Setup: GIT + GUI Tool TortoiseGIT). Only if you cooperate with others, it is necessary to store the source code externally. What is GIT: ![]() Difference Tool: BeyondCompare ...shipped with Delphi. :thumb: ...to much? :zwinker: Who says programming is easy? You have to learn every day. 8-) |
AW: Wie drucken Sie Name und Note in FASTREPORT?
Zitat:
thank you very very much haentschman |
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:33 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz