 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Christian Jonszies Guest
|
Posted: Wed Jun 21, 2006 3:55 pm Post subject: Report does use Creation Query SQL Text? |
|
|
Hallo,
I have a big Problem with the new Rave Reports that ships with Borland Developer Studio 2006.
I have written a Win32 Application with reporting (same as in Delphi 7) and created a Report with Version 6.5.
I have ONE Query on my Form and TRvDataSetConnection Component.
I Created a Report with a DirectDataView.
I have a standard SQL Statement in the Query.
Before I execute the Report, I change the Where Clause of the SQL Statement of the Query and reopen the Query.
But the Report always shows the Recors with the original SQL Statement that is inside the Query, when the Form is Created.
I Use dbGo with an Access Database over the JET Driver.
Any Suggestions?
Regards
C. Jonszies |
|
| Back to top |
|
 |
Christian Jonszies Guest
|
Posted: Wed Jun 21, 2006 5:02 pm Post subject: Re: Report does use Creation Query SQL Text? |
|
|
I have found a Workaround...
in the OnOpen Event of the TRvDataSetConnection, I Close the Query, set the SQL Statement again and open the Query again.
Then it works.
Greetz
C. Jonszies
"Christian Jonszies" <christian.jonszies (AT) stemmer (DOT) de> wrote:
| Quote: |
Hallo,
I have a big Problem with the new Rave Reports that ships with Borland Developer Studio 2006.
I have written a Win32 Application with reporting (same as in Delphi 7) and created a Report with Version 6.5.
I have ONE Query on my Form and TRvDataSetConnection Component.
I Created a Report with a DirectDataView.
I have a standard SQL Statement in the Query.
Before I execute the Report, I change the Where Clause of the SQL Statement of the Query and reopen the Query.
But the Report always shows the Recors with the original SQL Statement that is inside the Query, when the Form is Created.
I Use dbGo with an Access Database over the JET Driver.
Any Suggestions?
Regards
C. Jonszies |
|
|
| Back to top |
|
 |
Christian Jonszies Guest
|
Posted: Wed Jun 21, 2006 5:32 pm Post subject: Re: Report does use Creation Query SQL Text? |
|
|
Argh... no it does NOT work...
it worked only one time... now I get always the result set from that time... What the Hell is that?
Do I need something special to remove something???
My Source-Code on PrintButton is:
dmGlobal.rvProjekt.Close;
dmGlobal.rvSystem.SystemPrinter.Orientation := poLandscape;
dmGlobal.rvProjekt.ProjectFile := IncludeTrailingBackslash(ExtractFilePath(Application.ExeName)) + Self.ClassName + '.rav';
dmGlobal.rvSystem.SystemSetups := dmGlobal.rvSystem.SystemSetups + [ssAllowSetup];
dmGlobal.rvProjekt.Execute;
dmGlobal.rvProjekt.Close;
Regards
C. Jonszies
"Christian Jonszies" <christian.jonszies (AT) stemmer (DOT) de> wrote:
| Quote: |
I have found a Workaround...
in the OnOpen Event of the TRvDataSetConnection, I Close the Query, set the SQL Statement again and open the Query again.
Then it works.
Greetz
C. Jonszies
"Christian Jonszies" <christian.jonszies (AT) stemmer (DOT) de> wrote:
Hallo,
I have a big Problem with the new Rave Reports that ships with Borland Developer Studio 2006.
I have written a Win32 Application with reporting (same as in Delphi 7) and created a Report with Version 6.5.
I have ONE Query on my Form and TRvDataSetConnection Component.
I Created a Report with a DirectDataView.
I have a standard SQL Statement in the Query.
Before I execute the Report, I change the Where Clause of the SQL Statement of the Query and reopen the Query.
But the Report always shows the Recors with the original SQL Statement that is inside the Query, when the Form is Created.
I Use dbGo with an Access Database over the JET Driver.
Any Suggestions?
Regards
C. Jonszies
|
|
|
| Back to top |
|
 |
Christian Jonszies Guest
|
Posted: Wed Jun 21, 2006 5:41 pm Post subject: Re: Report does use Creation Query SQL Text? |
|
|
...I found out that in "OnOpen" event, all Changes on Components, Variables, etc. are reset to the old state...
Example:
1. I write "Test" in edit1.text
2. I click the Print Button
3. I write "XYZ" in edit1.Text
4. I Click Print Button again - in the "OnOpen" event, edit1.Text is still "Test" ???
What the Hell is wrong in Memory here???
It seems, that the Report Engine saves Application Memory and uses it all the time??? or what???
Cannot get a Workaround for it...
Anyone can Help???
Regards
C. Jonszies |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|