Announcement

Collapse
No announcement yet.

QuickReport und DisplayPrintDialog

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • QuickReport und DisplayPrintDialog

    Hallo !!

    Brauche dringend Hilfe!!!

    Wie kann ich den PrintDialog welcher über die Eigenschaft<BR>
    DisplayPrintDialog=True der Komponente TQuickReport aktiviert wird<BR>
    auswerten, also auf 'Abbrechen' bzw. 'Ok' unterschiedlich reagieren??

    Delphi 2.0 und QR 1.1

    Vielen Dank

  • #2
    Was für QR-Version benutzt Du?
    Ich kenne weder TQuickReport noch DisplayPrintDialog.

    Ansonsten: Die Eigenschaft Tag des TQuickRep gibt Auskunft: 0 heisst ok

    Comment


    • #3
      Hallo Bruno,

      Benutze QR-Version 1.1
      Steht aber auch in Anfrage.

      Vielen Dan

      Comment


      • #4
        Hallo Steffen,

        sorry, hatte wohl Tomaten auf dem Monitor...

        In einem FAQ von QR steht dazu folgendes:

        Q. How can I tell how the user exits the report's PrinterSetup method? It does not pass back the status.
        A. You can test the value of report's tag property (with version 2.J or newer) after calling PrinterSetup and if it's 1, then they selected OK.
        Many users have asked for the ability to print automaticly if the user selects OK from PrinterSetup. You would code that like this:

        with frmReport.quickrep1 do
        begin
        PrinterSetup;
        if tag = 0 then
        print;
        end;

        To do this in the preview will require using a custom preview and passing in a reference to the calling
        report to the preview. That will allow you to call PrinterSetup and be able to check the tag value.
        We have a sample preview that does this and it is available upon request

        Comment

        Working...
        X