Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Another Problem with QReport 3.0

Hello! And thank you for viewing this message!

I do i close the preview window, after the report has been sent for printing?
I've have tried this in many ways but it simply won't close the window!
Is there a bug in QReport?

Is there any other GOOD report printing software available?

Please let me know!
Than you for reading my message!
Goodbye!

Comments

  • Mark StrijbosMark Strijbos Member Posts: 82
    : how do i close the preview window, after the report has been sent
    : for printing?
    you probably just want to skip the preview and use:

    MyReport.Print;

    If you do decide to use the Preview window you are a bit stuck because that window won't close by itself (without user action).
    That's event-driven programming !

    : Is there a bug in QReport?
    no, it actually works like a dream - or nightmare :)

    it does take some getting used to and the learning curve is a bit too steep perhaps but it does its job quite well if you know how to make use of it


  • FactorSoftwareFactorSoftware Member Posts: 19
    : : how do i close the preview window, after the report has been sent
    : : for printing?
    : you probably just want to skip the preview and use:
    :
    : MyReport.Print;
    :
    : If you do decide to use the Preview window you are a bit stuck because that window won't close by itself (without user action).
    : That's event-driven programming !
    :
    : : Is there a bug in QReport?
    : no, it actually works like a dream - or nightmare :)
    :
    : it does take some getting used to and the learning curve is a bit too steep perhaps but it does its job quite well if you know how to make use of it
    :
    :
    :

    I do use the method Print in some i my reports because the data of those reports are not calculated and they don't need confirmation!
    But some of them do, and is best for the user to confirm the calculations! In these cases, when i use a preview window, i use the AfterPrint event, or a similar one, to close the window after the report has been send to printing!

    Here is my problem:

    In that event, all the code that i have written executes except for the Close method!
    I understand that there is more than one type of preview windows!
    Could it be because of that?

    Still, I thank you for replying to this message!
    And, if you can help me again, i would be very thankfull!
    Goodbye!




Sign In or Register to comment.