Results 1 to 2 of 2

Thread: vb6 data report

  1. #1
    Join Date
    Dec 2003
    Location
    Tasmania
    Posts
    58

    Unanswered: vb6 data report

    I am using the data report utility in VB6.

    Doing rpt.show displays the report on the screen & there is a print icon in that window, but no Close button. If the report is printed it disappears from the screen & all is well, but if it is not printed & the application closed, then the process remains (verified in task manager).
    Does anyone know a way around this ?
    I tried the following, but the process still remains.

    With rptSalesAnal
    Me.Visible = False 'hide user-front-end form
    .Refresh
    .Show 'display report on screen
    If MsgBox("Print ?", vbYesNo) = vbOK Then
    .PrintReport 'print report
    Else
    .Hide 'hide report
    End If
    Me.Visible = True 'display user-front-end form
    End With
    catkins

  2. #2
    Join Date
    Dec 2003
    Location
    Tasmania
    Posts
    58

    bleedin' obvious really

    Found the answer while laying in my bed pondering the hassles of the day & it is painfully simple:

    unload rptSalesAnal
    catkins

Posting Permissions

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