Results 1 to 4 of 4

Thread: [RESOLVED] DataReport object not closing?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,515

    Resolved [RESOLVED] DataReport object not closing?

    Almost all my Datareports I display using the "Show" method so the user can decide if they want to print the report.
    Code:
    DataReport1.Show
    And everything is fine when I close the app. wether they print the report or not.

    2 of my Datareports I use the "PrintReport" method
    Code:
    Datareport1.PrintReport
    But when I'm in the IDE and I close the app after the "PrintReport", I have to use the IDE to manually stop the program.

    If if switch the "printreport" to "show", everything shutsdown fine, even if I print the report. I'm guessing the the report object is staying open but there is no "close" method for the datareport.

    I just recently stopped using "End" and I'd like to keep it that way.

    Any help would be appriciated, Thanks

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,515

    Re: DataReport object not closing?

    Has anyone had any problems like this with "Printreport"?

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,515

    Re: DataReport object not closing?

    If anybody is interested the solution is putting "unload DataReport1" after the "PrintReport"

  4. #4
    New Member
    Join Date
    Dec 2003
    Posts
    7

    Re: [RESOLVED] DataReport object not closing?

    Thank you for the solution.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width