Autor Beitrag
elduchte
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 199

Win 2000, Win XP
Delphi 7
BeitragVerfasst: Sa 21.06.03 11:43 
Hallo Leute,
ich habe wieder ein Problem:

Ich möchte meinen QuickReport in meiner Anwendung als MDI-Child aufrufen. Im Moment rufe ich nur die Form als MDI-Child auf, auf der ich den Report platziert habe. Den Report als neues Fenster aufrufen funzt auch, aber halt nicht als Child.....

Geht das überhaupt? Habe schon so einiges probiert, aber es klappt nicht.

Kann mir jemand helfen?

Danke
Andreas
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Sa 21.06.03 13:42 
hallo andi!

was soll denn ein child-report bringen? normalerweise reicht es doch, wenn die form, aus welcher du den report aufrufst, ein child-window ist.
mit quickreport gehts nicht, da müsstest dir schon einen eigenen report erststellen.

mfg, stefan
elduchte Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 199

Win 2000, Win XP
Delphi 7
BeitragVerfasst: Sa 21.06.03 15:21 
hallo stefan,
vielen dank für deine hilfe. mittlerweile habe ich in meinen unzähligen büchern nachgelesen und kam leider so zum gleichen ergebnis. wollte halt, dass der report nicht ein eigenes fenster ausserhalb meiner hauptanwendung hat sondern so dass z. B. meine menüleiste noch sichtbar ist. aber was halt nicht ist.....

aber habe jetzt noch ein problem: will dem report bei bedarf ein anderes seitenformat zuweisen.

ich mach das mit:
ausblenden Quelltext
1:
Rep_Sort_LfdNr_Frm.QuickRep1.Page.Orientation := poLandscape;					

beim starten bekomme ich einen fehler: er sagt poLandscape ist ein ungültiger bezeichner......

was mache ich denn nun wieder falsch ?

danke
mfg, andreas
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Sa 21.06.03 18:06 
halli andi!

ein auszug aus den faq's von qusoft.com
Zitat:

Q. An error appears when we set the "Orientation" in the "Page" property to
"poLandscape" and the "PaperSize" property to "Default". If we now call the Preview, the
following error message appears on the screen : "Error on floating point operation".

A. There is a known problem with QR2 if you change the orientation at runtime when the
paper size is set to Default or Custom. This will be addressed in a future release. One
work around would be to use the following code:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
with QuickRep1 do begin  {Get the current papersize from the default printer and set the report to use it}
  with TQRPrinter.Create do begin
    Printerindex := -1;
    QuickRep1.Page.PaperSize := PaperSize;
    Free;
  end;
  Page.Orientation := poLandscape;  
  Preview;
end;


--> hier hatte ich den tipp gefunden.

mfg, stefan
ps: langsam blick ich bei QuickReport auch durch ;)